From 417aa0ea9edee8574277ec57d6efbead1c2b4ec2 Mon Sep 17 00:00:00 2001 From: gingerBill Date: Fri, 19 Jun 2026 09:08:52 +0100 Subject: [PATCH] Remove `0h` float panic which will have been caught previously by the tokenizer --- src/exact_value.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/exact_value.cpp b/src/exact_value.cpp index 525b8cb91..fa26ec4b0 100644 --- a/src/exact_value.cpp +++ b/src/exact_value.cpp @@ -337,7 +337,10 @@ gb_internal ExactValue exact_value_float_from_string(String string) { f64 f = bit_cast(u); return exact_value_float(f); } else { - GB_PANIC("Invalid hexadecimal float, expected 8 or 16 digits, got %td", digit_count); + // GB_PANIC("Invalid hexadecimal float, expected 4, 8, or 16 digits, got %td", digit_count); + // NOTE(bill): This should be caught by the tokenizer, so just pretend it's an f64 + f64 f = bit_cast(u); + return exact_value_float(f); } }