summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/Grasp/Interpreter.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Grasp/Interpreter.hs b/src/Grasp/Interpreter.hs
index 14de9bc..ca28578 100644
--- a/src/Grasp/Interpreter.hs
+++ b/src/Grasp/Interpreter.hs
@@ -367,7 +367,7 @@ divI = do
(error "Instruction div should have numeric right arguments")
let inputFunc = Maybe.fromJust . IN.toFloat . GN.toInst
- result = (inputFunc (head leftNodes)) / (sum (map inputFunc rightNodes))
+ result = (inputFunc (head leftNodes)) / (product (map inputFunc rightNodes))
mapM_ (GMonad.reLabel (IN.mk (show result))) outNodes
GMonad.updateIP