Commit ac018d3
committed
Fix sizeOf in instance Storable Fingerprint
The commit 2d38e16 changed
sizeOf (_ :: Fingerprint) from 64 to 14. This is dangerous,
because it means that pokeByteOff could be reading Word32
with an offset not divisible by sizeOf (_ :: Word32).
Some architectures are forgiving with regards to unaligned reads,
some (such as ARM) are not.
Let's bump sizeOf (_ :: Fingerprint) from 14 to 16.1 parent 9a54aaa commit ac018d3
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
267 | 267 | | |
268 | 268 | | |
269 | 269 | | |
270 | | - | |
| 270 | + | |
271 | 271 | | |
272 | 272 | | |
273 | 273 | | |
| |||
0 commit comments