We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6245680 commit ab5049aCopy full SHA for ab5049a
saxbospiral/serialise.c
@@ -103,7 +103,7 @@ dump_spiral(spiral_t spiral) {
103
for(uint8_t i = 0; i < 8; i++) {
104
uint8_t shift = (8 * (7 - i));
105
output.bytes[16 + i] = (uint8_t)(
106
- ((uint64_t)spiral.size & (0xff << shift)) >> shift
+ ((uint64_t)spiral.size & (0xffUL << shift)) >> shift
107
);
108
}
109
// write final newline at end of header
0 commit comments