aboutsummaryrefslogtreecommitdiff
path: root/src/lib_string.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/lib_string.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib_string.c b/src/lib_string.c
index 36fd3f53..69b29356 100644
--- a/src/lib_string.c
+++ b/src/lib_string.c
@@ -873,7 +873,7 @@ LJLIB_CF(string_format)
873 if (LJ_UNLIKELY((tv.u32.hi << 1) >= 0xffe00000)) { 873 if (LJ_UNLIKELY((tv.u32.hi << 1) >= 0xffe00000)) {
874 /* Canonicalize output of non-finite values. */ 874 /* Canonicalize output of non-finite values. */
875 char *p, nbuf[LJ_STR_NUMBUF]; 875 char *p, nbuf[LJ_STR_NUMBUF];
876 size_t len = lj_str_bufnum(nbuf, &tv); 876 MSize len = lj_str_bufnum(nbuf, &tv);
877 if (strfrmt[-1] < 'a') { 877 if (strfrmt[-1] < 'a') {
878 nbuf[len-3] = nbuf[len-3] - 0x20; 878 nbuf[len-3] = nbuf[len-3] - 0x20;
879 nbuf[len-2] = nbuf[len-2] - 0x20; 879 nbuf[len-2] = nbuf[len-2] - 0x20;