Fix string16 literal length set in LLVM

This commit is contained in:
gingerBill
2025-08-02 13:11:34 +01:00
parent e049dde582
commit dca9bf0b0c
3 changed files with 12 additions and 7 deletions

View File

@@ -658,7 +658,6 @@ gb_internal String normalize_path(gbAllocator a, String const &path, String cons
// TODO(bill): Make this non-windows specific
gb_internal String16 string_to_string16(gbAllocator a, String s) {
int len, len1;
u16 *text;
@@ -680,7 +679,6 @@ gb_internal String16 string_to_string16(gbAllocator a, String s) {
return make_string16(nullptr, 0);
}
text[len] = 0;
return make_string16(text, len);
}