Skip to content

Commit 70879f5

Browse files
committed
Set null constant correctly
hx-lua-simdjson uses nil as null
1 parent 06c038d commit 70879f5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/hxluasimdjson.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -328,7 +328,7 @@ int luaopen_hxsimdjson (lua_State *L) {
328328
lua_newtable(L);
329329
luaL_setfuncs (L, hxluasimdjson, 0);
330330

331-
lua_pushlightuserdata(L, NULL);
331+
lua_pushnil(L);
332332
lua_setfield(L, -2, "null");
333333

334334
lua_pushliteral(L, LUA_SIMDJSON_NAME);

0 commit comments

Comments
 (0)