ogl_beamforming

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

Commit: 76bec95f22dc009170b04712f4440773de1fea27
Parent: b8adae3cb229364f892a3befa81fbc9f8617e3d1
Author: Randy Palamar
Date:   Wed,  9 Oct 2024 22:46:01 -0600

stream_append_s8: fix off by one in error condition

This just meant that we could never write an s8 right up to the
end of the stream.

Diffstat:
Mutil.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/util.c b/util.c @@ -54,7 +54,7 @@ stream_append_byte(Stream *s, u8 b) static void stream_append_s8(Stream *s, s8 str) { - s->errors |= (s->cap - s->widx) <= str.len; + s->errors |= (s->cap - s->widx) < str.len; if (!s->errors) { for (size i = 0; i < str.len; i++) s->data[s->widx++] = str.data[i];