Disable for in over cstring

This commit is contained in:
gingerBill
2018-08-26 15:10:23 +01:00
parent a6b0ae71b2
commit e5735af6d6
3 changed files with 34 additions and 6 deletions

View File

@@ -141,6 +141,8 @@ ExactValue exact_value_integer_from_string(String const &string) {
return result;
}
f64 float_from_string(String string) {
isize i = 0;
u8 *str = string.text;
@@ -296,6 +298,16 @@ ExactValue exact_value_to_integer(ExactValue v) {
return r;
}
i64 exact_value_to_i64(ExactValue v) {
v = exact_value_to_integer(v);
i64 result = 0;
if (v.kind == ExactValue_Integer) {
return big_int_to_i64(&v.value_integer);
}
return result;
}
ExactValue exact_value_to_float(ExactValue v) {
switch (v.kind) {
case ExactValue_Integer: