aboutsummaryrefslogtreecommitdiff
path: root/src/string.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/string.cpp')
-rw-r--r--src/string.cpp2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/string.cpp b/src/string.cpp
index 0764009bc..434c20d90 100644
--- a/src/string.cpp
+++ b/src/string.cpp
@@ -539,14 +539,12 @@ String quote_to_ascii(gbAllocator a, String str, u8 quote='"') {
r = 0XFFFD;
}
if (r < 0x10000) {
- u8 b = cast(u8)r;
array_add(&buf, cast(u8)'\\');
array_add(&buf, cast(u8)'u');
for (isize i = 12; i >= 0; i -= 4) {
array_add(&buf, cast(u8)lower_hex[(r>>i)&0xf]);
}
} else {
- u8 b = cast(u8)r;
array_add(&buf, cast(u8)'\\');
array_add(&buf, cast(u8)'U');
for (isize i = 28; i >= 0; i -= 4) {