- Fix the case where \u<unicode char> could crash the compiler on some platforms.

This commit is contained in:
Christoffer Lerno
2026-01-01 21:44:37 +01:00
parent e4965ab408
commit 29b211eefc
2 changed files with 2 additions and 1 deletions

View File

@@ -47,6 +47,7 @@
- Miscompilation: global struct with vector could generate an incorrect initializer.
- `String.tokenize_all` would yield one too many empty tokens at the end.
- `String.replace` no longer depends on `String.split`.
- Fix the case where `\u<unicode char>` could crash the compiler on some platforms.
### Stdlib changes
- Add `ThreadPool` join function to wait for all threads to finish in the pool without destroying the threads.

View File

@@ -609,7 +609,7 @@ static char hex_conv[256] = {
static inline int char_hex_to_nibble(char c)
{
return hex_conv[(unsigned)c] - 1;
return hex_conv[(unsigned char)c] - 1;
}
static inline bool char_is_hex_or_(char c)