aboutsummaryrefslogtreecommitdiff
path: root/lstrlib.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2017-11-16 11:19:06 -0200
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2017-11-16 11:19:06 -0200
commite4e5aa85a24bba6c243aeeaedc66ec712856c6db (patch)
treef2a4333254eb0e8ed7691d9110ff568d3bd6ec61 /lstrlib.c
parent4c0e36a46e11be2f101203ed0db66ea750bf4333 (diff)
downloadlua-e4e5aa85a24bba6c243aeeaedc66ec712856c6db.tar.gz
lua-e4e5aa85a24bba6c243aeeaedc66ec712856c6db.tar.bz2
lua-e4e5aa85a24bba6c243aeeaedc66ec712856c6db.zip
detail ('signal' -> 'sign' in comments)
Diffstat (limited to 'lstrlib.c')
-rw-r--r--lstrlib.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lstrlib.c b/lstrlib.c
index 626c9159..9a4cf90d 100644
--- a/lstrlib.c
+++ b/lstrlib.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lstrlib.c,v 1.257 2017/07/07 16:34:32 roberto Exp roberto $ 2** $Id: lstrlib.c,v 1.258 2017/11/08 14:50:23 roberto Exp roberto $
3** Standard library for string operations and pattern-matching 3** Standard library for string operations and pattern-matching
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5*/ 5*/
@@ -994,7 +994,7 @@ static int num2straux (char *buff, int sz, lua_Number x) {
994 lua_Number m = l_mathop(frexp)(x, &e); /* 'x' fraction and exponent */ 994 lua_Number m = l_mathop(frexp)(x, &e); /* 'x' fraction and exponent */
995 int n = 0; /* character count */ 995 int n = 0; /* character count */
996 if (m < 0) { /* is number negative? */ 996 if (m < 0) { /* is number negative? */
997 buff[n++] = '-'; /* add signal */ 997 buff[n++] = '-'; /* add sign */
998 m = -m; /* make it positive */ 998 m = -m; /* make it positive */
999 } 999 }
1000 buff[n++] = '0'; buff[n++] = 'x'; /* add "0x" */ 1000 buff[n++] = '0'; buff[n++] = 'x'; /* add "0x" */