From 8871373cea55df0374ed0d4da9cd21f2fb08fe09 Mon Sep 17 00:00:00 2001 From: Benoit Giannangeli Date: Fri, 24 Mar 2017 16:56:31 +0100 Subject: %c put the actual value in the string array --- src/lstrlib.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/lstrlib.js') diff --git a/src/lstrlib.js b/src/lstrlib.js index 03c6358..1294baa 100644 --- a/src/lstrlib.js +++ b/src/lstrlib.js @@ -319,7 +319,8 @@ const str_format = function(L) { switch (String.fromCharCode(strfrmt[0])) { case 'c': { strfrmt = strfrmt.slice(1); - concat(b, lua.to_luastring(sprintf(String.fromCharCode(...form), lauxlib.luaL_checkinteger(L, arg)))); + // concat(b, lua.to_luastring(sprintf(String.fromCharCode(...form), lauxlib.luaL_checkinteger(L, arg)))); + b.push(lauxlib.luaL_checkinteger(L, arg)); break; } case 'd': case 'i': -- cgit v1.2.3-54-g00ecf