diff options
author | Mike Pall <mike> | 2016-04-21 17:00:58 +0200 |
---|---|---|
committer | Mike Pall <mike> | 2016-04-21 17:00:58 +0200 |
commit | 2f0001fad05731ea3787b27cf9b19e5293c358b8 (patch) | |
tree | cbfbb921518399867b24b0d82bf2ccc7fc111bf7 /src/lj_iropt.h | |
parent | cc4f5d056ab93521451631f28501015f054d8976 (diff) | |
download | luajit-2f0001fad05731ea3787b27cf9b19e5293c358b8.tar.gz luajit-2f0001fad05731ea3787b27cf9b19e5293c358b8.tar.bz2 luajit-2f0001fad05731ea3787b27cf9b19e5293c358b8.zip |
Fix handling of non-numeric strings in arithmetic coercions.
Thanks to Vyacheslav Egorov.
Diffstat (limited to 'src/lj_iropt.h')
-rw-r--r-- | src/lj_iropt.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lj_iropt.h b/src/lj_iropt.h index 1836e1b0..4bf95f15 100644 --- a/src/lj_iropt.h +++ b/src/lj_iropt.h | |||
@@ -142,8 +142,8 @@ LJ_FUNC TRef LJ_FASTCALL lj_opt_narrow_cindex(jit_State *J, TRef key); | |||
142 | LJ_FUNC TRef lj_opt_narrow_arith(jit_State *J, TRef rb, TRef rc, | 142 | LJ_FUNC TRef lj_opt_narrow_arith(jit_State *J, TRef rb, TRef rc, |
143 | TValue *vb, TValue *vc, IROp op); | 143 | TValue *vb, TValue *vc, IROp op); |
144 | LJ_FUNC TRef lj_opt_narrow_unm(jit_State *J, TRef rc, TValue *vc); | 144 | LJ_FUNC TRef lj_opt_narrow_unm(jit_State *J, TRef rc, TValue *vc); |
145 | LJ_FUNC TRef lj_opt_narrow_mod(jit_State *J, TRef rb, TRef rc, TValue *vc); | 145 | LJ_FUNC TRef lj_opt_narrow_mod(jit_State *J, TRef rb, TRef rc, TValue *vb, TValue *vc); |
146 | LJ_FUNC TRef lj_opt_narrow_pow(jit_State *J, TRef rb, TRef rc, TValue *vc); | 146 | LJ_FUNC TRef lj_opt_narrow_pow(jit_State *J, TRef rb, TRef rc, TValue *vb, TValue *vc); |
147 | LJ_FUNC IRType lj_opt_narrow_forl(jit_State *J, cTValue *forbase); | 147 | LJ_FUNC IRType lj_opt_narrow_forl(jit_State *J, cTValue *forbase); |
148 | 148 | ||
149 | /* Optimization passes. */ | 149 | /* Optimization passes. */ |