summaryrefslogtreecommitdiff
path: root/src/runtime/haskell/PGF/Binary.hs
diff options
context:
space:
mode:
authorkr.angelov <kr.angelov@gmail.com>2014-10-06 15:57:42 +0000
committerkr.angelov <kr.angelov@gmail.com>2014-10-06 15:57:42 +0000
commit13c7721bc52ca2ee998c0a4347f15264c78a951b (patch)
tree9a40516b232a8408f6568c1c00f0a88c0970f984 /src/runtime/haskell/PGF/Binary.hs
parentaf7feea38589676ad4a2cfd93b13413be99f33b7 (diff)
using instruction RET was wrong; now use EVAL
Diffstat (limited to 'src/runtime/haskell/PGF/Binary.hs')
-rw-r--r--src/runtime/haskell/PGF/Binary.hs6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/runtime/haskell/PGF/Binary.hs b/src/runtime/haskell/PGF/Binary.hs
index 3f8515179..aef894e2b 100644
--- a/src/runtime/haskell/PGF/Binary.hs
+++ b/src/runtime/haskell/PGF/Binary.hs
@@ -168,10 +168,8 @@ instance Binary Instr where
put (EVAL (ARG_VAR n) (UpdateCall b c)) = putWord8 49 >> put n >> put (b,c)
put (EVAL (FREE_VAR n) (UpdateCall b c)) = putWord8 50 >> put n >> put (b,c)
put (EVAL (GLOBAL id) (UpdateCall b c)) = putWord8 51 >> put id >> put (b,c)
- put (RET h (TailCall a b c)) = putWord8 53 >> put h >> put a >> put b
- put (RET h (UpdateCall b c)) = putWord8 54 >> put h >> put b
- put (DROP n l ) = putWord8 60 >> put (n,l)
- put (FAIL ) = putWord8 64
+ put (DROP n l ) = putWord8 52 >> put (n,l)
+ put (FAIL ) = putWord8 56
instance Binary Type where
put (DTyp hypos cat exps) = put (hypos,cat,exps)