diff options
author | Benoit Giannangeli <giann008@gmail.com> | 2017-06-16 11:12:02 +0200 |
---|---|---|
committer | Benoit Giannangeli <giann008@gmail.com> | 2017-06-16 11:12:02 +0200 |
commit | c59ef784df550312fd452dfb7faa16a386602566 (patch) | |
tree | ce04bbe489f515d16d5fcc5351cdf2fac97a8286 /src/lstrlib.js | |
parent | cad0eac50b70a280611dd89440a805912ebfad8b (diff) | |
download | fengari-c59ef784df550312fd452dfb7faa16a386602566.tar.gz fengari-c59ef784df550312fd452dfb7faa16a386602566.tar.bz2 fengari-c59ef784df550312fd452dfb7faa16a386602566.zip |
lstrlib.js: j/J are 4 bytes
Diffstat (limited to 'src/lstrlib.js')
-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 9344794..c22474f 100644 --- a/src/lstrlib.js +++ b/src/lstrlib.js @@ -452,7 +452,7 @@ const getoption = function(h, fmt) { 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): 4 - case 'J'.charCodeAt(0): r.size = 8; r.opt = KOption.Kuint; return r; + case 'J'.charCodeAt(0): r.size = 4; 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 case 'd'.charCodeAt(0): r.size = 8; r.opt = KOption.Kfloat; return r; // sizeof(double): 8 |