diff options
| author | Saikari <[email protected]> | 2026-01-17 07:50:38 +0300 |
|---|---|---|
| committer | Saikari <[email protected]> | 2026-01-17 07:50:38 +0300 |
| commit | ee2f9eaac207c1b728a17c24287cd69076df74d9 (patch) | |
| tree | e083b5303e4f6d41d1428afd4073fea586e81271 /core/src/xmake/string | |
| parent | 5f03e0684c22482c361586d64ca0e044a2f14f2b (diff) | |
fixup
Diffstat (limited to 'core/src/xmake/string')
| -rw-r--r-- | core/src/xmake/string/case.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/core/src/xmake/string/case.c b/core/src/xmake/string/case.c index 5fa4c5786..9206cafa2 100644 --- a/core/src/xmake/string/case.c +++ b/core/src/xmake/string/case.c @@ -71,18 +71,18 @@ static tb_int_t xm_string_case(lua_State* lua, tb_bool_t lower) { if (n != -1) { lua_pushlstring(lua, ub, n); } else { - lua_pushnil(lua); + lua_pushlstring(lua, str, size); } tb_free(ub); } else { - lua_pushnil(lua); + lua_pushlstring(lua, str, size); } } else { - lua_pushnil(lua); + lua_pushlstring(lua, str, size); } tb_free(wb); } else { - lua_pushnil(lua); + lua_pushlstring(lua, str, size); } // ok |
