diff options
author | Mike Pall <mike> | 2011-03-10 02:13:43 +0100 |
---|---|---|
committer | Mike Pall <mike> | 2011-03-10 02:13:43 +0100 |
commit | 889368e921a11e2abb3769e2c1f395174e83112d (patch) | |
tree | a0280bec2142380ce13b1afc2d8e17fcd65e29e9 /src/lj_lex.c | |
parent | bfce3c1127fd57fe0c935c92bcf45b4737041edd (diff) | |
download | luajit-889368e921a11e2abb3769e2c1f395174e83112d.tar.gz luajit-889368e921a11e2abb3769e2c1f395174e83112d.tar.bz2 luajit-889368e921a11e2abb3769e2c1f395174e83112d.zip |
Get rid of the remaining silly cast macros from Lua.
Diffstat (limited to 'src/lj_lex.c')
-rw-r--r-- | src/lj_lex.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lj_lex.c b/src/lj_lex.c index 78458572..bc029761 100644 --- a/src/lj_lex.c +++ b/src/lj_lex.c | |||
@@ -36,7 +36,7 @@ TKDEF(TKSTR1, TKSTR2) | |||
36 | 36 | ||
37 | /* -- Buffer handling ----------------------------------------------------- */ | 37 | /* -- Buffer handling ----------------------------------------------------- */ |
38 | 38 | ||
39 | #define char2int(c) cast(int, cast(uint8_t, (c))) | 39 | #define char2int(c) ((int)(uint8_t)(c)) |
40 | #define next(ls) \ | 40 | #define next(ls) \ |
41 | (ls->current = (ls->n--) > 0 ? char2int(*ls->p++) : fillbuf(ls)) | 41 | (ls->current = (ls->n--) > 0 ? char2int(*ls->p++) : fillbuf(ls)) |
42 | #define save_and_next(ls) (save(ls, ls->current), next(ls)) | 42 | #define save_and_next(ls) (save(ls, ls->current), next(ls)) |