mirror of
https://github.com/ddidderr/wuffs.git
synced 2026-11-18 00:32:11 +01:00
Test read_uxxbe across an I/O short read
This commit is contained in:
1 parent
eb05139fcd
commit
ea2dec09df
2 files changed
+58
-25
No files matched your search
@@ -752,7 +752,6 @@ func (g *gen) writeReadUXX(b *buffer, n *a.Expr, name string, size uint32, endia
|
||||
b.printf("& 0xFF;")
|
||||
b.printf("%s >>= 8;", scratchName)
|
||||
b.printf("%s <<= 8;", scratchName)
|
||||
// TODO: make a test case for 56 (correct) vs 64 (incorrect).
|
||||
b.printf("%s |= ((uint64_t)(*%srptr_%s++)) << (56 - %s%d);",
|
||||
scratchName, bPrefix, name, tPrefix, temp0)
|
||||
case "le":
|
||||
|
||||
Reference in new issue
Block a user