mirror of
https://github.com/odin-lang/Odin.git
synced 2026-10-09 06:12:05 -04:00
Remove 0h float panic which will have been caught previously by the tokenizer
This commit is contained in:
1 parent
b2ab8c7f8b
commit
417aa0ea9e
1 file changed
+4
-1
+4
-1
@@ -337,7 +337,10 @@ gb_internal ExactValue exact_value_float_from_string(String string) {
|
||||
f64 f = bit_cast<f64>(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<f64>(u);
|
||||
return exact_value_float(f);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user