mirror of
https://github.com/Ed94/Odin.git
synced 2026-06-16 02:42:22 -07:00
Fix big_int_to_f64
This commit is contained in:
@@ -281,6 +281,11 @@ ExactValue exact_value_float_from_string(String string) {
|
||||
}
|
||||
}
|
||||
|
||||
if (!string_contains_char(string, '.') && !string_contains_char(string, '-')) {
|
||||
// NOTE(bill): treat as integer
|
||||
return exact_value_integer_from_string(string);
|
||||
}
|
||||
|
||||
f64 f = float_from_string(string);
|
||||
return exact_value_float(f);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user