diff options
author | scuri <scuri> | 2010-07-18 03:04:23 +0000 |
---|---|---|
committer | scuri <scuri> | 2010-07-18 03:04:23 +0000 |
commit | 34f4dcea9afc19dcaf929b0ef4170a6b6940ab42 (patch) | |
tree | 05d191fb216ae110b8d2d0121c239a7aed48ca4d /src/lua5/imlua_aux.c | |
parent | c315a7256b42812a13e80e3bc4a48a2dc1b7170d (diff) |
*** empty log message ***
Diffstat (limited to 'src/lua5/imlua_aux.c')
-rw-r--r-- | src/lua5/imlua_aux.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/lua5/imlua_aux.c b/src/lua5/imlua_aux.c index ef972b2..d74464b 100644 --- a/src/lua5/imlua_aux.c +++ b/src/lua5/imlua_aux.c @@ -2,7 +2,7 @@ * \brief IM Lua 5 Binding * * See Copyright Notice in im_lib.h - * $Id: imlua_aux.c,v 1.4 2010/06/10 20:17:40 scuri Exp $ + * $Id: imlua_aux.c,v 1.5 2010/07/18 03:04:23 scuri Exp $ */ #include <memory.h> @@ -47,7 +47,7 @@ int imlua_getn (lua_State *L, int index) int imlua_newarrayint (lua_State *L, int *value, int count, int start) { int i; - lua_newtable(L); + lua_createtable(L, count, 0); for (i = 0; i < count; i++) { lua_pushinteger(L, value[i]); @@ -62,7 +62,7 @@ int imlua_newarrayint (lua_State *L, int *value, int count, int start) int imlua_newarrayulong (lua_State *L, unsigned long *value, int count, int start) { int i; - lua_newtable(L); + lua_createtable(L, count, 0); for (i = 0; i < count; i++) { lua_pushnumber(L, value[i]); @@ -77,7 +77,7 @@ int imlua_newarrayulong (lua_State *L, unsigned long *value, int count, int star int imlua_newarrayfloat (lua_State *L, float *value, int count, int start) { int i; - lua_newtable(L); + lua_createtable(L, count, 0); for (i = 0; i < count; i++) { lua_pushnumber(L, value[i]); |