Commit 0b0ac38
committed
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.
```1 parent bd5680c commit 0b0ac38
File tree
1 file changed
+1
-2
lines changed- tests/capi/luaL_loadbuffer_proto
1 file changed
+1
-2
lines changedLines changed: 1 addition & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
181 | 181 | | |
182 | 182 | | |
183 | 183 | | |
184 | | - | |
| 184 | + | |
185 | 185 | | |
186 | 186 | | |
187 | 187 | | |
188 | | - | |
189 | 188 | | |
190 | 189 | | |
191 | 190 | | |
| |||
0 commit comments