aboutsummaryrefslogtreecommitdiff
path: root/src/tools.c
diff options
context:
space:
mode:
authorbenoit-germain <bnt.germain@gmail.com>2012-04-24 16:36:52 +0300
committerbenoit-germain <bnt.germain@gmail.com>2012-04-24 16:36:52 +0300
commit213dda9224f18c156bb94b2c6c054ce400a22bd0 (patch)
tree26b78cd8b5d8f6759690b86cdfe7af39ca5e2a42 /src/tools.c
parent59e5e111473639c06074e69da6444af14e3f80cd (diff)
downloadlanes-213dda9224f18c156bb94b2c6c054ce400a22bd0.tar.gz
lanes-213dda9224f18c156bb94b2c6c054ce400a22bd0.tar.bz2
lanes-213dda9224f18c156bb94b2c6c054ce400a22bd0.zip
Fix issue #15 (lanes fails to build on Linux x86_64 (gcc 4.6.1) size_t vs int size)
Diffstat (limited to 'src/tools.c')
-rw-r--r--src/tools.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/tools.c b/src/tools.c
index 212cf52..ccd941d 100644
--- a/src/tools.c
+++ b/src/tools.c
@@ -1219,10 +1219,7 @@ static void lookup_native_func( lua_State *L2, lua_State *L, uint_t i)
1219 lua_rawget( L2, -2); // {} f 1219 lua_rawget( L2, -2); // {} f
1220 if( !lua_isfunction( L2, -1)) 1220 if( !lua_isfunction( L2, -1))
1221 { 1221 {
1222 // yarglah: luaL_error formatting doesn't support string width modifier! 1222 luaL_error( L, "function %s not found in destination transfer database.", fqn);
1223 char message[256];
1224 sprintf( message, "function %*s not found in destination transfer database.", len, fqn);
1225 luaL_error( L, message);
1226 } 1223 }
1227 lua_remove( L2, -2); // f 1224 lua_remove( L2, -2); // f
1228 STACK_END( L2, 1) 1225 STACK_END( L2, 1)