mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-06 07:38:48 +00:00
Fix #5789
This commit is contained in:
+2
-2
@@ -908,8 +908,8 @@ gb_internal ExactValue exact_binary_operator_value(TokenKind op, ExactValue x, E
|
|||||||
if (op != Token_Add) goto error;
|
if (op != Token_Add) goto error;
|
||||||
|
|
||||||
// NOTE(bill): How do you minimize this over allocation?
|
// NOTE(bill): How do you minimize this over allocation?
|
||||||
String sx = x.value_string;
|
String16 sx = x.value_string16;
|
||||||
String sy = y.value_string;
|
String16 sy = y.value_string16;
|
||||||
isize len = sx.len+sy.len;
|
isize len = sx.len+sy.len;
|
||||||
u16 *data = gb_alloc_array(permanent_allocator(), u16, len);
|
u16 *data = gb_alloc_array(permanent_allocator(), u16, len);
|
||||||
gb_memmove(data, sx.text, sx.len*gb_size_of(u16));
|
gb_memmove(data, sx.text, sx.len*gb_size_of(u16));
|
||||||
|
|||||||
Reference in New Issue
Block a user