diff options
author | Mike Pall <mike> | 2013-02-28 02:31:30 +0100 |
---|---|---|
committer | Mike Pall <mike> | 2013-02-28 02:31:30 +0100 |
commit | 3c0157f4262813efd0b0d8284810ff5a9e71d96a (patch) | |
tree | aacdd625d6c8cb86bc378be4e7b01e63cb522c33 /src/lj_lib.c | |
parent | 87c51e7f57ec9277a02e7e21c8a28b4cb9d08914 (diff) | |
download | luajit-3c0157f4262813efd0b0d8284810ff5a9e71d96a.tar.gz luajit-3c0157f4262813efd0b0d8284810ff5a9e71d96a.tar.bz2 luajit-3c0157f4262813efd0b0d8284810ff5a9e71d96a.zip |
String buffer refactoring, part 3.
Switch to pointers for start/end of buffer in lexer.
Diffstat (limited to 'src/lj_lib.c')
-rw-r--r-- | src/lj_lib.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lj_lib.c b/src/lj_lib.c index 79c2c99a..b6aa97a0 100644 --- a/src/lj_lib.c +++ b/src/lj_lib.c | |||
@@ -55,7 +55,7 @@ static const uint8_t *lib_read_lfunc(lua_State *L, const uint8_t *p, GCtab *tab) | |||
55 | memset(&ls, 0, sizeof(ls)); | 55 | memset(&ls, 0, sizeof(ls)); |
56 | ls.L = L; | 56 | ls.L = L; |
57 | ls.p = (const char *)(p+len); | 57 | ls.p = (const char *)(p+len); |
58 | ls.n = ~(MSize)0; | 58 | ls.pe = (const char *)~(uintptr_t)0; |
59 | ls.c = -1; | 59 | ls.c = -1; |
60 | ls.level = (BCDUMP_F_STRIP|(LJ_BE*BCDUMP_F_BE)); | 60 | ls.level = (BCDUMP_F_STRIP|(LJ_BE*BCDUMP_F_BE)); |
61 | ls.chunkname = name; | 61 | ls.chunkname = name; |