Skip to content

Commit

Permalink
fix some norm error
Browse files Browse the repository at this point in the history
  • Loading branch information
TTENSHII committed Jan 14, 2024
1 parent 1c78d33 commit b33e6bd
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions lvtrun/src/Run/Vm.hs
Original file line number Diff line number Diff line change
Expand Up @@ -130,15 +130,12 @@ execFunctionWithIdx vm funcIdx currentStack =
ceParams = params funcTypee, ceResults = results funcTypee}

runMain :: VM -> FuncIdx -> Stack
runMain vm funcIdx =
pushResults [] (vmStack newVm) (ceResults (currentExec newVm))
runMain vm funcIdx = pushResults[](vmStack newVm)(ceResults(currentExec newVm))

Check warning on line 133 in lvtrun/src/Run/Vm.hs

View workflow job for this annotation

GitHub Actions / compil-macos

This binding for ‘funcIdx’ shadows the existing binding

Check warning on line 133 in lvtrun/src/Run/Vm.hs

View workflow job for this annotation

GitHub Actions / compil-windows

This binding for `funcIdx' shadows the existing binding

Check warning on line 133 in lvtrun/src/Run/Vm.hs

View workflow job for this annotation

GitHub Actions / tests

This binding for ‘funcIdx’ shadows the existing binding

Check warning on line 133 in lvtrun/src/Run/Vm.hs

View workflow job for this annotation

GitHub Actions / compil-linux

This binding for ‘funcIdx’ shadows the existing binding
where
function = getFunctionFromId funcIdx (functions (wasmModule vm))
funcTypee = getFuncTypeFromId (funcType function) (types (wasmModule vm))
cexec = createEmptyExec {
ceLocals = createEmptyLocals [] (locals function),
ceInstructions = body function,
ceParams = params funcTypee,
ceResults = results funcTypee
}
ceParams = params funcTypee, ceResults = results funcTypee}
newVm = execFunction vm { currentExec = cexec }

0 comments on commit b33e6bd

Please sign in to comment.