Browse code

Reverted flags

neauoire authored on 30/08/2021 17:19:33
Showing 2 changed files
... ...
@@ -12,9 +12,9 @@ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
12 12
 WITH REGARD TO THIS SOFTWARE.
13 13
 */
14 14
 
15
-#define MODE_RETURN 0x20
16
-#define MODE_SHORT 0x40
17
-#define MODE_KEEP 0x80
15
+#define MODE_SHORT  0x20
16
+#define MODE_RETURN 0x40
17
+#define MODE_KEEP   0x80
18 18
 
19 19
 #pragma mark - Operations
20 20
 
... ...
@@ -88,10 +88,10 @@ findopcode(char *s)
88 88
 		if(!scmp(ops[i], s, 3))
89 89
 			continue;
90 90
 		while(s[3 + m]) {
91
-			if(s[3 + m] == 'r')
92
-				i |= (1 << 5); /* mode: return */
93
-			else if(s[3 + m] == '2')
94
-				i |= (1 << 6); /* mode: short */
91
+			if(s[3 + m] == '2')
92
+				i |= (1 << 5); /* mode: short */
93
+			else if(s[3 + m] == 'r')
94
+				i |= (1 << 6); /* mode: return */
95 95
 			else if(s[3 + m] == 'k')
96 96
 				i |= (1 << 7); /* mode: keep */
97 97
 			else