aboutsummaryrefslogtreecommitdiff
path: root/lauxlib.c
diff options
context:
space:
mode:
Diffstat (limited to 'lauxlib.c')
-rw-r--r--lauxlib.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lauxlib.c b/lauxlib.c
index ba1980b7..014e7052 100644
--- a/lauxlib.c
+++ b/lauxlib.c
@@ -1010,9 +1010,9 @@ static int panic (lua_State *L) {
1010static void warnf (void *ud, const char *message, int tocont) { 1010static void warnf (void *ud, const char *message, int tocont) {
1011 int *warnstate = (int *)ud; 1011 int *warnstate = (int *)ud;
1012 if (*warnstate != 2 && !tocont && *message == '@') { /* control message? */ 1012 if (*warnstate != 2 && !tocont && *message == '@') { /* control message? */
1013 if (strcmp(message + 1, "off") == 0) 1013 if (strcmp(message, "@off") == 0)
1014 *warnstate = 0; 1014 *warnstate = 0;
1015 else if (strcmp(message + 1, "on") == 0) 1015 else if (strcmp(message, "@on") == 0)
1016 *warnstate = 1; 1016 *warnstate = 1;
1017 return; 1017 return;
1018 } 1018 }