diff options
| author | gingerBill <gingerBill@users.noreply.github.com> | 2025-10-30 10:54:26 +0000 |
|---|---|---|
| committer | gingerBill <gingerBill@users.noreply.github.com> | 2025-10-30 10:54:26 +0000 |
| commit | 35a28053b8779ea7ab9845c31ad52fd55888667a (patch) | |
| tree | 0808c843adc86b33da72bfa2739ca0f5597a6532 /src/exact_value.cpp | |
| parent | bb44b02b3e220d7019aba8b547a6d3e6fbd49dba (diff) | |
| parent | 074a8d7df5e024117d7f91944ccf053cad27ca0e (diff) | |
Merge branch 'master' into vendor/curl
Diffstat (limited to 'src/exact_value.cpp')
| -rw-r--r-- | src/exact_value.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/exact_value.cpp b/src/exact_value.cpp index f2aed84c2..e7077bd5b 100644 --- a/src/exact_value.cpp +++ b/src/exact_value.cpp @@ -908,8 +908,8 @@ gb_internal ExactValue exact_binary_operator_value(TokenKind op, ExactValue x, E if (op != Token_Add) goto error; // NOTE(bill): How do you minimize this over allocation? - String sx = x.value_string; - String sy = y.value_string; + String16 sx = x.value_string16; + String16 sy = y.value_string16; isize len = sx.len+sy.len; u16 *data = gb_alloc_array(permanent_allocator(), u16, len); gb_memmove(data, sx.text, sx.len*gb_size_of(u16)); |