Update CCLuaStack.cpp

This commit is contained in:
halx99 2016-06-23 13:42:38 +08:00 committed by GitHub
parent 90434e58d0
commit ba55723178
1 changed files with 1 additions and 1 deletions

View File

@ -868,7 +868,7 @@ int LuaStack::luaLoadBuffer(lua_State *L, const char *chunk, int chunkSize, cons
(unsigned char*)_xxteaKey,
(xxtea_long)_xxteaKeyLen,
&len);
skipBOM((char*&)result, (int&)len);
skipBOM((const char*&)result, (int&)len);
r = luaL_loadbuffer(L, (char*)result, len, chunkName);
free(result);
}