diff options
author | Benoit Giannangeli <giann008@gmail.com> | 2017-06-16 11:41:14 +0200 |
---|---|---|
committer | Benoit Giannangeli <giann008@gmail.com> | 2017-06-16 11:41:14 +0200 |
commit | 5cc20c902903418b6bfbca3d57542fee633a9368 (patch) | |
tree | 94e8cb61a6f0bb86b2af84db565e1290f63b0340 /src | |
parent | 0414d1fe801059d09d3cdd7df777438c4d2e0e83 (diff) | |
download | fengari-5cc20c902903418b6bfbca3d57542fee633a9368.tar.gz fengari-5cc20c902903418b6bfbca3d57542fee633a9368.tar.bz2 fengari-5cc20c902903418b6bfbca3d57542fee633a9368.zip |
Bad error message for too long Kchar
Diffstat (limited to 'src')
-rw-r--r-- | src/lstrlib.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lstrlib.js b/src/lstrlib.js index f48d859..a0e5911 100644 --- a/src/lstrlib.js +++ b/src/lstrlib.js @@ -599,7 +599,7 @@ const str_pack = function(L) { case KOption.Kchar: { /* fixed-size string */ let s = lauxlib.luaL_checkstring(L, arg); let len = s.length; - lauxlib.luaL_argcheck(L, len <= size, arg, lua.to_luastring("string long than given size", true)); + lauxlib.luaL_argcheck(L, len <= size, arg, lua.to_luastring("string longer than given size", true)); b.push(...s); /* add string */ while (len++ < size) /* pad extra space */ b.push(LUAL_PACKPADBYTE); |