From 0470f3be8e93d78c7ab4e09edc8c60bbd2dadd50 Mon Sep 17 00:00:00 2001 From: sipekdan Date: Thu, 7 Aug 2025 15:46:57 +0200 Subject: [PATCH] Fix typo in bf16 suffix parsing logic --- src/compiler/float.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/compiler/float.c b/src/compiler/float.c index e9b663941..b791de02d 100644 --- a/src/compiler/float.c +++ b/src/compiler/float.c @@ -104,7 +104,7 @@ static char *err_hex_float_format_invalid = "Hex floating points must end with ' TypeKind float_suffix(char c, const char **index_ref, char** error_ref) { - if (c == 'b' && (*index_ref)[0] == 'f' && (*index_ref)[1] == '1' && (*index_ref)[1] == '6') + if (c == 'b' && (*index_ref)[0] == 'f' && (*index_ref)[1] == '1' && (*index_ref)[2] == '6') { (*index_ref) += 4; return TYPE_BF16;