Skip to content

Commit

Permalink
fix compilation
Browse files Browse the repository at this point in the history
  • Loading branch information
TTENSHII committed Jan 14, 2024
1 parent 8efe9bf commit 6b75cd5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lvtrun/src/Run/Locals.hs
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,8 @@ initLocalsParams' (values, newStack) prms =
initLocalsParams :: [TypeName] -> Stack -> (Locals, Stack)
initLocalsParams [] stack = ([], stack)
initLocalsParams prms stack
| length params > length stack = throw $ WasmError "initLocalsParam: bad nb"
| otherwise = initLocalsParams' (stackPopN stack (length params)) prms
| length prms > length stack = throw $ WasmError "initLocalsParam: bad nb"
| otherwise = initLocalsParams' (stackPopN stack (length prms)) prms

initLocals :: [Local] -> [TypeName] -> Stack -> (Locals, Stack)
initLocals localVarTypes paramTypes stack = do
Expand Down

0 comments on commit 6b75cd5

Please sign in to comment.