forked from GitHub/haskell-wasm
fix memarg binary parsing
This commit is contained in:
1 parent
705b43af34
commit
a0bdcae94a
1 file changed
+4
-1
@@ -296,7 +296,10 @@ instance Serialize Index where
|
||||
|
||||
instance Serialize MemArg where
|
||||
put MemArg { align, offset } = putULEB128 align >> putULEB128 offset
|
||||
get = MemArg <$> getULEB128 32 <*> getULEB128 32
|
||||
get = do
|
||||
align <- getULEB128 32
|
||||
offset <- getULEB128 32
|
||||
return $ MemArg { align, offset }
|
||||
|
||||
instance Serialize (Instruction Natural) where
|
||||
put Unreachable = putWord8 0x00
|
||||
|
||||
Reference in new issue
Block a user