aboutsummaryrefslogtreecommitdiff
path: root/source/bf16_to_f32.c
diff options
context:
space:
mode:
Diffstat (limited to 'source/bf16_to_f32.c')
-rw-r--r--source/bf16_to_f32.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/bf16_to_f32.c b/source/bf16_to_f32.c
index a30006a..a76632e 100644
--- a/source/bf16_to_f32.c
+++ b/source/bf16_to_f32.c
@@ -85,7 +85,7 @@ float32_t bf16_to_f32( bfloat16_t a )
}
/*------------------------------------------------------------------------
*------------------------------------------------------------------------*/
- uiZ = packToF32UI( sign, exp, (uint_fast32_t) frac<<16 );
+ uiZ = packToF32UI( sign, exp, ((uint_fast32_t) frac) <<16 );
uiZ:
uZ.ui = uiZ;
return uZ.f;