bugfix: add lightuserdata

This commit is contained in:
Cloud Wu
2015-11-13 17:28:02 +08:00
parent 30859a1244
commit 87bc0815f6

View File

@@ -527,6 +527,7 @@ get_buffer(lua_State *L, int index, int *sz) {
const char * str;
size_t len;
case LUA_TUSERDATA:
case LUA_TLIGHTUSERDATA:
buffer = lua_touserdata(L,index);
*sz = luaL_checkinteger(L,index+1);
break;