diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2013-12-16 17:06:52 -0200 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2013-12-16 17:06:52 -0200 |
commit | a948054a1951cd526c732d6a0e16d99cae837d49 (patch) | |
tree | d13984803c85e83eda285a285bd3de2e05a603af /ltests.c | |
parent | a8f8c7fd80a5c7e630fd4bf7f858d05024f6b434 (diff) | |
download | lua-a948054a1951cd526c732d6a0e16d99cae837d49.tar.gz lua-a948054a1951cd526c732d6a0e16d99cae837d49.tar.bz2 lua-a948054a1951cd526c732d6a0e16d99cae837d49.zip |
new order for binary operations (grouping them by type of result)
Diffstat (limited to 'ltests.c')
-rw-r--r-- | ltests.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: ltests.c,v 2.158 2013/09/11 14:09:55 roberto Exp roberto $ | 2 | ** $Id: ltests.c,v 2.159 2013/09/11 14:47:08 roberto Exp roberto $ |
3 | ** Internal Module for Debugging of the Lua Implementation | 3 | ** Internal Module for Debugging of the Lua Implementation |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | */ | 5 | */ |
@@ -1198,7 +1198,7 @@ static int runC (lua_State *L, lua_State *L1, const char *pc) { | |||
1198 | } | 1198 | } |
1199 | } | 1199 | } |
1200 | else if EQ("arith") { | 1200 | else if EQ("arith") { |
1201 | static char ops[] = "+-*/\\%^_"; /* '\' -> '//'; '_' -> '..' */ | 1201 | static char ops[] = "+-*%^/\\_"; /* '\' -> '//'; '_' -> '..' */ |
1202 | int op; | 1202 | int op; |
1203 | skip(&pc); | 1203 | skip(&pc); |
1204 | op = strchr(ops, *pc++) - ops; | 1204 | op = strchr(ops, *pc++) - ops; |