aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lua_cjson.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lua_cjson.c b/lua_cjson.c
index ff61c47..df1794b 100644
--- a/lua_cjson.c
+++ b/lua_cjson.c
@@ -800,7 +800,7 @@ static void json_append_data(lua_State *l, json_config_t *cfg,
800 case LUA_TLIGHTUSERDATA: 800 case LUA_TLIGHTUSERDATA:
801 if (lua_touserdata(l, -1) == NULL) { 801 if (lua_touserdata(l, -1) == NULL) {
802 strbuf_append_mem(json, "null", 4); 802 strbuf_append_mem(json, "null", 4);
803 } else if (lua_touserdata(l, -1) == &json_array) { 803 } else if (lua_touserdata(l, -1) == json_lightudata_mask(&json_array)) {
804 json_append_array(l, cfg, current_depth, json, 0); 804 json_append_array(l, cfg, current_depth, json, 0);
805 } 805 }
806 break; 806 break;