nil_allocator; Fix IR type checking assert; append_string

This commit is contained in:
gingerBill
2017-11-26 15:25:45 +00:00
parent febcd73323
commit 5a9223afda
4 changed files with 33 additions and 24 deletions
+7 -2
View File
@@ -111,6 +111,11 @@ parse_uint :: proc(s: string, base: int) -> uint {
return uint(parse_u128(s));
}
parse_f32 :: proc(s: string) -> f32 {
return f32(parse_f64(s));
}
parse_f64 :: proc(s: string) -> f64 {
i := 0;
@@ -181,8 +186,8 @@ parse_f64 :: proc(s: string) -> f64 {
append_bool :: proc(buf: []u8, b: bool) -> string {
if b do append(&buf, "true");
else do append(&buf, "false");
if b do append_string(&buf, "true");
else do append_string(&buf, "false");
return string(buf);
}