mirror of
https://github.com/ddidderr/wuffs.git
synced 2026-11-19 16:47:28 +01:00
Fix -Werror=conversion in std/json decode_tokens
This commit is contained in:
1 parent
934136b09c
commit
7a5e89115d
2 files changed
+4
-4
No files matched your search
@@ -584,10 +584,10 @@ pub func decoder.decode_tokens?(dst: base.token_writer, src: base.io_reader, wor
|
||||
|
||||
c = LUT_HEXADECIMAL_DIGITS[0xFF & (backslash_x_string >> 16)]
|
||||
backslash_x_ok &= c
|
||||
backslash_x_value = (c & 0x0F) << 4
|
||||
backslash_x_value = ((c & 0x0F) << 4) as base.u8
|
||||
c = LUT_HEXADECIMAL_DIGITS[0xFF & (backslash_x_string >> 24)]
|
||||
backslash_x_ok &= c
|
||||
backslash_x_value |= (c & 0x0F)
|
||||
backslash_x_value = (backslash_x_value | (c & 0x0F)) as base.u8
|
||||
|
||||
if (backslash_x_ok == 0) or
|
||||
((backslash_x_string & 0xFFFF) <> 0x785C) {
|
||||
|
||||
Reference in new issue
Block a user