summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordaurnimator <quae@daurnimator.com>2017-05-12 14:54:58 +1000
committerdaurnimator <quae@daurnimator.com>2017-05-12 14:54:58 +1000
commite2890c20e306108aaae8c10b87218020c51bc227 (patch)
treeda265bfa5bb0cad7b693297131304ce01613b8d8
parentf67e32773d85134a919b93a2394fcb7b585b5c6e (diff)
downloadfengari-e2890c20e306108aaae8c10b87218020c51bc227.tar.gz
fengari-e2890c20e306108aaae8c10b87218020c51bc227.tar.bz2
fengari-e2890c20e306108aaae8c10b87218020c51bc227.zip
src/lstrlib.js: Fix incorrect size in comment
See https://github.com/giann/fengari/commit/3ba0fe6fd5ad9f62b948bf970347ffef3d5fe4bf#commitcomment-22054952
-rw-r--r--src/lstrlib.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lstrlib.js b/src/lstrlib.js
index 2eb9ff5..9a75b78 100644
--- a/src/lstrlib.js
+++ b/src/lstrlib.js
@@ -449,7 +449,7 @@ const getoption = function(h, fmt) {
case 'H'.charCodeAt(0): r.size = 2; r.opt = KOption.Kuint; return r;
case 'l'.charCodeAt(0): r.size = 8; r.opt = KOption.Kint; return r; // sizeof(long): 8
case 'L'.charCodeAt(0): r.size = 8; r.opt = KOption.Kuint; return r;
- case 'j'.charCodeAt(0): r.size = 4; r.opt = KOption.Kint; return r; // sizeof(lua_Integer): 8
+ case 'j'.charCodeAt(0): r.size = 4; r.opt = KOption.Kint; return r; // sizeof(lua_Integer): 4
case 'J'.charCodeAt(0): r.size = 8; r.opt = KOption.Kuint; return r;
case 'T'.charCodeAt(0): r.size = 8; r.opt = KOption.Kuint; return r; // sizeof(size_t): 8
case 'f'.charCodeAt(0): r.size = 4; r.opt = KOption.Kfloat; return r; // sizeof(float): 4