aboutsummaryrefslogtreecommitdiff
path: root/lstrlib.c
diff options
context:
space:
mode:
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 a18b6299..8d3f305c 100644
--- a/lstrlib.c
+++ b/lstrlib.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lstrlib.c,v 1.250 2016/05/18 18:19:51 roberto Exp roberto $ 2** $Id: lstrlib.c,v 1.251 2016/05/20 14:13:21 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*/
@@ -933,7 +933,7 @@ static void addquoted (luaL_Buffer *b, const char *s, size_t len) {
933static void checkdp (char *buff, int nb) { 933static void checkdp (char *buff, int nb) {
934 if (memchr(buff, '.', nb) == NULL) { /* no dot? */ 934 if (memchr(buff, '.', nb) == NULL) { /* no dot? */
935 char point = lua_getlocaledecpoint(); /* try locale point */ 935 char point = lua_getlocaledecpoint(); /* try locale point */
936 char *ppoint = memchr(buff, point, nb); 936 char *ppoint = (char *)memchr(buff, point, nb);
937 if (ppoint) *ppoint = '.'; /* change it to a dot */ 937 if (ppoint) *ppoint = '.'; /* change it to a dot */
938 } 938 }
939} 939}