aboutsummaryrefslogtreecommitdiff
path: root/src/lj_parse.c
diff options
context:
space:
mode:
authorMike Pall <mike>2013-05-13 10:15:07 +0200
committerMike Pall <mike>2013-05-13 10:15:07 +0200
commit8f90a1279e125a8cb9727751f76fb75214208f89 (patch)
treeb65706b5b10231780735fcf80966e14f616f39b7 /src/lj_parse.c
parent625ffca739a703906fbc321ef9405514d72480fe (diff)
downloadluajit-8f90a1279e125a8cb9727751f76fb75214208f89.tar.gz
luajit-8f90a1279e125a8cb9727751f76fb75214208f89.tar.bz2
luajit-8f90a1279e125a8cb9727751f76fb75214208f89.zip
Big renaming of string buffer/formatting/conversion functions.
Diffstat (limited to 'src/lj_parse.c')
-rw-r--r--src/lj_parse.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/lj_parse.c b/src/lj_parse.c
index c1ef2593..cdb89baf 100644
--- a/src/lj_parse.c
+++ b/src/lj_parse.c
@@ -22,6 +22,7 @@
22#if LJ_HASFFI 22#if LJ_HASFFI
23#include "lj_ctype.h" 23#include "lj_ctype.h"
24#endif 24#endif
25#include "lj_strfmt.h"
25#include "lj_lex.h" 26#include "lj_lex.h"
26#include "lj_parse.h" 27#include "lj_parse.h"
27#include "lj_vm.h" 28#include "lj_vm.h"
@@ -1462,8 +1463,8 @@ static size_t fs_prep_var(LexState *ls, FuncState *fs, size_t *ofsvar)
1462 p = lj_buf_wmem(p, strdata(s), len); 1463 p = lj_buf_wmem(p, strdata(s), len);
1463 } 1464 }
1464 startpc = vs->startpc; 1465 startpc = vs->startpc;
1465 p = lj_buf_wuleb128(p, startpc-lastpc); 1466 p = lj_strfmt_wuleb128(p, startpc-lastpc);
1466 p = lj_buf_wuleb128(p, vs->endpc-startpc); 1467 p = lj_strfmt_wuleb128(p, vs->endpc-startpc);
1467 setsbufP(&ls->sb, p); 1468 setsbufP(&ls->sb, p);
1468 lastpc = startpc; 1469 lastpc = startpc;
1469 } 1470 }