Skip to content

Commit

Permalink
lj_vmprofile.c: Fixed to set file magic number with C API calls
Browse files Browse the repository at this point in the history
Oops. The magic number and version fields of the VMProfile structure
were only initialized via the FFI interface and not the C API one.
  • Loading branch information
lukego committed Jul 31, 2017
1 parent 8cd8f7e commit 4a06d4a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lj_vmprofile.c
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ LUA_API int luaJIT_vmprofile_close(lua_State *L, void *ud)
LUA_API int luaJIT_vmprofile_select(lua_State *L, void *ud)
{
setlightudV(L->base, checklightudptr(L, profile));
profile = (VMProfile *)ud;
vmprofile_set_profile(ud);
return 1;
}

Expand Down

0 comments on commit 4a06d4a

Please sign in to comment.