summary refs log tree commit diff
diff options
context:
space:
mode:
authorJune McEnroe <programble@gmail.com>2016-10-10 00:45:02 -0400
committerJune McEnroe <programble@gmail.com>2016-10-10 00:45:02 -0400
commitc2413e1fb19b054f1a9560b993a9e6c67f62e3f7 (patch)
treed396bed8799d4bd5057b4c2fe006b817b5029368
parentAllocate two pages of stack for jrp (diff)
downloadsrc-c2413e1fb19b054f1a9560b993a9e6c67f62e3f7.tar.gz
src-c2413e1fb19b054f1a9560b993a9e6c67f62e3f7.zip
Fix jrp dop pushes
Pushing zero on a qop boundary would break because zero is the sentinal
value for code.dop.
Diffstat (limited to '')
-rwxr-xr-x.bin/jrp.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/.bin/jrp.c b/.bin/jrp.c
index de137cf7..92c935df 100755
--- a/.bin/jrp.c
+++ b/.bin/jrp.c
@@ -103,8 +103,7 @@ static void jitQop(qop op) {
 
 static void jitPush(qvalue imm) {
     if ((dvalue)imm == imm) {
-        jitDop(DOP_PUSH);
-        jitDop((dop)imm);
+        jitQop(DOP_PUSH | (qop)imm << 32);
     } else {
         jitQop(QOP_PUSH);
         jitQop((qop)imm);