ogl_beamforming

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

Commit: 2317f027275a706ac57cb1dee459d4ccd997b49b
Parent: 8e8b13f716535edaccaf6e73833540ba1d3db554
Author: Randy Palamar
Date:   Thu, 14 Nov 2024 17:38:33 -0700

fix stream variable printing for VT_I32

Diffstat:
Mutil.c | 7++++---
1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/util.c b/util.c @@ -220,13 +220,14 @@ static void stream_append_variable(Stream *s, Variable *var) { switch (var->type) { - case VT_F32: + case VT_F32: { f32 *f32_val = var->store; stream_append_f64(s, *f32_val * var->display_scale, 100); - break; - case VT_I32: + } break; + case VT_I32: { i32 *i32_val = var->store; stream_append_i64(s, *i32_val * var->display_scale); + } break; default: INVALID_CODE_PATH; } }