diff options
author | Mike Pall <mike> | 2013-05-13 10:15:07 +0200 |
---|---|---|
committer | Mike Pall <mike> | 2013-05-13 10:15:07 +0200 |
commit | 8f90a1279e125a8cb9727751f76fb75214208f89 (patch) | |
tree | b65706b5b10231780735fcf80966e14f616f39b7 /src/lj_lib.c | |
parent | 625ffca739a703906fbc321ef9405514d72480fe (diff) | |
download | luajit-8f90a1279e125a8cb9727751f76fb75214208f89.tar.gz luajit-8f90a1279e125a8cb9727751f76fb75214208f89.tar.bz2 luajit-8f90a1279e125a8cb9727751f76fb75214208f89.zip |
Big renaming of string buffer/formatting/conversion functions.
Diffstat (limited to 'src/lj_lib.c')
-rw-r--r-- | src/lj_lib.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lj_lib.c b/src/lj_lib.c index a4bde57a..bdbaba1d 100644 --- a/src/lj_lib.c +++ b/src/lj_lib.c | |||
@@ -18,6 +18,7 @@ | |||
18 | #include "lj_dispatch.h" | 18 | #include "lj_dispatch.h" |
19 | #include "lj_vm.h" | 19 | #include "lj_vm.h" |
20 | #include "lj_strscan.h" | 20 | #include "lj_strscan.h" |
21 | #include "lj_strfmt.h" | ||
21 | #include "lj_lex.h" | 22 | #include "lj_lex.h" |
22 | #include "lj_bcdump.h" | 23 | #include "lj_bcdump.h" |
23 | #include "lj_lib.h" | 24 | #include "lj_lib.h" |
@@ -164,7 +165,7 @@ GCstr *lj_lib_checkstr(lua_State *L, int narg) | |||
164 | if (LJ_LIKELY(tvisstr(o))) { | 165 | if (LJ_LIKELY(tvisstr(o))) { |
165 | return strV(o); | 166 | return strV(o); |
166 | } else if (tvisnumber(o)) { | 167 | } else if (tvisnumber(o)) { |
167 | GCstr *s = lj_str_fromnumber(L, o); | 168 | GCstr *s = lj_strfmt_number(L, o); |
168 | setstrV(L, o, s); | 169 | setstrV(L, o, s); |
169 | return s; | 170 | return s; |
170 | } | 171 | } |