From 5cc20c902903418b6bfbca3d57542fee633a9368 Mon Sep 17 00:00:00 2001 From: Benoit Giannangeli Date: Fri, 16 Jun 2017 11:41:14 +0200 Subject: Bad error message for too long Kchar --- src/lstrlib.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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); -- cgit v1.2.3-70-g09d2