Browse code

Use Keep modes for byte and short literals

Devine Lu Linvega authored on 29/10/2021 23:02:07
Showing 1 changed files
... ...
@@ -112,7 +112,7 @@ findopcode(char *s)
112 112
 static void
113 113
 pushbyte(Uint8 b, int lit)
114 114
 {
115
-	if(lit) pushbyte(findopcode("LIT"), 0);
115
+	if(lit) pushbyte(findopcode("LITk"), 0);
116 116
 	p.data[p.ptr++] = b;
117 117
 	p.length = p.ptr;
118 118
 }
... ...
@@ -120,7 +120,7 @@ pushbyte(Uint8 b, int lit)
120 120
 static void
121 121
 pushshort(Uint16 s, int lit)
122 122
 {
123
-	if(lit) pushbyte(findopcode("LIT2"), 0);
123
+	if(lit) pushbyte(findopcode("LIT2k"), 0);
124 124
 	pushbyte((s >> 8) & 0xff, 0);
125 125
 	pushbyte(s & 0xff, 0);
126 126
 }