diff options
author | 2008-12-04 10:27:42 -0500 | |
---|---|---|
committer | 2008-12-04 10:27:42 -0500 | |
commit | 72d97f4bed74709cd15063c72e07ab050027407c (patch) | |
tree | 47546f453e701d04cf378628428ebb9607d2ede7 | |
parent | 5ebcbca3f1094d1d2540215b2367eaf6c29dcb6d (diff) | |
download | textadept-72d97f4bed74709cd15063c72e07ab050027407c.tar.gz textadept-72d97f4bed74709cd15063c72e07ab050027407c.zip |
Use lua_checklong macro instead of checknumber with cast; src/lua_interface.c
-rw-r--r-- | src/lua_interface.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lua_interface.c b/src/lua_interface.c index c332e5bd..30dcc98f 100644 --- a/src/lua_interface.c +++ b/src/lua_interface.c @@ -591,7 +591,7 @@ static long l_toscintillaparam(LS *lua, int type, int &arg_idx) { ((static_cast<int>(luaL_checkinteger(lua, arg_idx++)) & (SCMOD_SHIFT | SCMOD_CTRL | SCMOD_ALT)) << 16); else if (type > tVOID && type < tBOOL) - return static_cast<long>(luaL_checknumber(lua, arg_idx++)); + return luaL_checklong(lua, arg_idx++); else return 0; } |