Skip to content

Commit ab5049a

Browse files
committed
Fix small bug in serialise dump function
Not really so much as a badly impacting bug but one that may have an impact in rare scenarios.
1 parent 6245680 commit ab5049a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

saxbospiral/serialise.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ dump_spiral(spiral_t spiral) {
103103
for(uint8_t i = 0; i < 8; i++) {
104104
uint8_t shift = (8 * (7 - i));
105105
output.bytes[16 + i] = (uint8_t)(
106-
((uint64_t)spiral.size & (0xff << shift)) >> shift
106+
((uint64_t)spiral.size & (0xffUL << shift)) >> shift
107107
);
108108
}
109109
// write final newline at end of header

0 commit comments

Comments
 (0)