summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrés <andmarti@gmail.com>2021-12-01 09:21:18 -0300
committerAndrés <andmarti@gmail.com>2021-12-01 09:21:18 -0300
commitef1dfed05b1f9e0267c1eb7d8aa379425dc89cdc (patch)
treed15186ea1cdea86ccaff4bd4dc668634eb673b50
parent004bfa9477f11949ea7b19f99e57e699a133ed14 (diff)
work on issue 635
-rw-r--r--src/lua.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lua.c b/src/lua.c
index 1d36125..d212185 100644
--- a/src/lua.c
+++ b/src/lua.c
@@ -241,8 +241,8 @@ static int l_colrow2a(lua_State *L) {
int c, r;
char buf[16];
- r = lua_tointeger(L, 1); /* get argument */
- c = lua_tointeger(L, 2);
+ r = lua_tointeger(L, 2); /* get argument */
+ c = lua_tointeger(L, 1);
sprintf(buf,"%s%d", coltoa(c),r);
lua_pushstring(L,buf);
return 1;