diff options
author | Benoit Giannangeli <giann008@gmail.com> | 2017-03-24 16:56:31 +0100 |
---|---|---|
committer | Benoit Giannangeli <giann008@gmail.com> | 2017-03-24 16:56:31 +0100 |
commit | 8871373cea55df0374ed0d4da9cd21f2fb08fe09 (patch) | |
tree | 7695a5e18b7505424552c281f66503b242f9b691 /src/lstrlib.js | |
parent | 7af8347dbb7a8c3a09d2aebccd5f96384a7c55c3 (diff) | |
download | fengari-8871373cea55df0374ed0d4da9cd21f2fb08fe09.tar.gz fengari-8871373cea55df0374ed0d4da9cd21f2fb08fe09.tar.bz2 fengari-8871373cea55df0374ed0d4da9cd21f2fb08fe09.zip |
%c put the actual value in the string array
Diffstat (limited to 'src/lstrlib.js')
-rw-r--r-- | src/lstrlib.js | 3 |
1 files changed, 2 insertions, 1 deletions
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': |