ogl_beamforming

Ultrasound Beamforming Implemented with OpenGL
git clone anongit@rnpnr.xyz:ogl_beamforming.git
Log | Files | Refs | Feed | Submodules | README | LICENSE

Commit: e4584f464a510befc98aa167c205dbd970c8f950
Parent: e3269b53edcea93b8dffd45b7665d655ff35a372
Author: Randy Palamar
Date:   Sat, 10 Oct 2026 10:02:45 -0600

util: fix numeric conversion of negative floats

the sign of the integer portion needs to be pre-applied to the
fractional portion before summation.

Diffstat:
Mutil.c | 1+
1 file changed, 1 insertion(+), 0 deletions(-)

diff --git a/util.c b/util.c @@ -1064,6 +1064,7 @@ number_from_str8(str8 s) u64 divisor = (u64)(fractional.unparsed.data - s.data); while (divisor > 0) { result.F64 /= 10.0; divisor--; } + result.F64 *= Sign(integer.S64); result.F64 += (f64)integer.S64; result.result = NumberConversionResult_Success;