mirror of
https://github.com/ddidderr/wuffs.git
synced 2026-11-18 08:32:11 +01:00
Split ETC__VBC__INLINE_INTEGER into {,un}signed
This commit is contained in:
1 parent
51a38295b6
commit
c9d4e34dfc
7 files changed
+93
-45
No files matched your search
@@ -161,7 +161,7 @@ pub func decoder.decode_tokens?(dst: base.token_writer, src: base.io_reader, wor
|
||||
if c_minor < 0x18 {
|
||||
args.dst.write_simple_token_fast!(
|
||||
value_major: 0,
|
||||
value_minor: (base.TOKEN__VBC__INLINE_INTEGER << 21) |
|
||||
value_minor: (base.TOKEN__VBC__INLINE_INTEGER_UNSIGNED << 21) |
|
||||
(c_minor as base.u32),
|
||||
continued: 0,
|
||||
length: 1)
|
||||
@@ -184,7 +184,7 @@ pub func decoder.decode_tokens?(dst: base.token_writer, src: base.io_reader, wor
|
||||
if c_minor < 0x18 {
|
||||
args.dst.write_simple_token_fast!(
|
||||
value_major: 0,
|
||||
value_minor: (base.TOKEN__VBC__INLINE_INTEGER << 21) |
|
||||
value_minor: (base.TOKEN__VBC__INLINE_INTEGER_SIGNED << 21) |
|
||||
(0x1F_FFFF - (c_minor as base.u32)),
|
||||
continued: 0,
|
||||
length: 1)
|
||||
|
||||
Reference in new issue
Block a user