mirror of
https://github.com/NoelFB/blah.git
synced 2025-09-13 13:24:26 +08:00
large spatial / numerics refactor to allow double/integer vector types
This commit is contained in:
@ -218,7 +218,7 @@ Str& Str::append_utf16(const u16* start, const u16* end, bool swap_endian)
|
||||
const u16 surrogate_min = 0xd800u;
|
||||
const u16 surrogate_max = 0xdbffu;
|
||||
|
||||
while (start != end)
|
||||
while ((end == nullptr && *start != 0) || (end != nullptr && start != end))
|
||||
{
|
||||
u16 next = (*start++);
|
||||
if (swap_endian)
|
||||
|
Reference in New Issue
Block a user