Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test/capi: fix compiler warning in profiler_cb
The patch fixes a compiler warning: ``` /home/sergeyb/sources/lua-c-api-tests/tests/capi/luaL_loadbuffer_proto/luaL_loadbuffer_proto_test.cc:371:32: warning: cast from 'void (*)(lua_State *, void *, size_t *)' (aka 'void (*)(lua_State *, void *, unsigned long *)') to 'luaJIT_profile_callback' (aka 'void (*)(void *, lua_State *, int, int)') converts to incompatible function type [-Wcast-function-type-mismatch] 371 | luaJIT_profile_start(L, mode, (luaJIT_profile_callback)profiler_cb, NULL); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1 warning generated. ```
- Loading branch information