aboutsummaryrefslogtreecommitdiff
path: root/src/lj_lib.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/lj_lib.c3
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 }