summaryrefslogtreecommitdiff
path: root/dev-lang/lua/files/5.1.4/07_all_boolean_expression.upstream.patch
blob: 956e966817d4f4f24a48f9355970538c6e91d42a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
--- lua-5.1.4.orig/src/lcode.c	2007/12/28 15:32:23	2.25.1.3
+++ lua-5.1.4/src/lcode.c	2009/06/15 14:07:34
@@ -549,13 +549,6 @@
       pc = e->u.s.info;
       break;
     }
-    case VFALSE: {
-      if (!hasjumps(e)) {
-        pc = luaK_jump(fs);  /* always jump */
-        break;
-      }
-      /* else go through */
-    }
     default: {
       pc = jumponcond(fs, e, 0);
       break;
@@ -579,13 +572,6 @@
       pc = e->u.s.info;
       break;
     }
-    case VTRUE: {
-      if (!hasjumps(e)) {
-        pc = luaK_jump(fs);  /* always jump */
-        break;
-      }
-      /* else go through */
-    }
     default: {
       pc = jumponcond(fs, e, 1);
       break;