aboutsummaryrefslogtreecommitdiff
path: root/src/lib_string.c
diff options
context:
space:
mode:
authorMike Pall <mike>2013-03-18 17:08:37 +0100
committerMike Pall <mike>2013-03-18 17:08:37 +0100
commitd1645c88a189259b38b0a733f59cd01767cd1245 (patch)
tree9e5849cbc697ad369f0c0ec0d4b091c0ca54d27b /src/lib_string.c
parent18d7c975d6017f401c193fecb93081739dc5a94d (diff)
downloadluajit-d1645c88a189259b38b0a733f59cd01767cd1245.tar.gz
luajit-d1645c88a189259b38b0a733f59cd01767cd1245.tar.bz2
luajit-d1645c88a189259b38b0a733f59cd01767cd1245.zip
Clean up TValue to buffer conversions.
Diffstat (limited to 'src/lib_string.c')
-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;