aboutsummaryrefslogtreecommitdiff
path: root/src/lib_bit.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/lib_bit.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib_bit.c b/src/lib_bit.c
index b1f0beb2..dec0cb87 100644
--- a/src/lib_bit.c
+++ b/src/lib_bit.c
@@ -13,7 +13,7 @@
13#include "lj_obj.h" 13#include "lj_obj.h"
14#include "lj_err.h" 14#include "lj_err.h"
15#include "lj_buf.h" 15#include "lj_buf.h"
16#include "lj_str.h" 16#include "lj_strscan.h"
17#include "lj_strfmt.h" 17#include "lj_strfmt.h"
18#if LJ_HASFFI 18#if LJ_HASFFI
19#include "lj_ctype.h" 19#include "lj_ctype.h"
@@ -157,7 +157,7 @@ LJLIB_CF(bit_tohex)
157 SFormat sf = (STRFMT_UINT|STRFMT_T_HEX); 157 SFormat sf = (STRFMT_UINT|STRFMT_T_HEX);
158 if (n < 0) { n = -n; sf |= STRFMT_F_UPPER; } 158 if (n < 0) { n = -n; sf |= STRFMT_F_UPPER; }
159 sf |= ((SFormat)(n+1) << STRFMT_SH_PREC); 159 sf |= ((SFormat)(n+1) << STRFMT_SH_PREC);
160 sb = lj_strfmt_putxint(sb, sf, b); 160 sb = lj_strfmt_putfxint(sb, sf, b);
161 setstrV(L, L->top-1, lj_buf_str(L, sb)); 161 setstrV(L, L->top-1, lj_buf_str(L, sb));
162 lj_gc_check(L); 162 lj_gc_check(L);
163 return 1; 163 return 1;