aboutsummaryrefslogtreecommitdiff
path: root/lapi.c
diff options
context:
space:
mode:
Diffstat (limited to 'lapi.c')
-rw-r--r--lapi.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/lapi.c b/lapi.c
index 0fcb6eaa..d5765cc9 100644
--- a/lapi.c
+++ b/lapi.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lapi.c,v 2.193 2014/01/27 13:34:32 roberto Exp roberto $ 2** $Id: lapi.c,v 2.194 2014/02/13 12:11:34 roberto Exp roberto $
3** Lua API 3** Lua API
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5*/ 5*/
@@ -1086,6 +1086,7 @@ LUA_API int lua_gc (lua_State *L, int what, int data) {
1086 } 1086 }
1087 case LUA_GCSETSTEPMUL: { 1087 case LUA_GCSETSTEPMUL: {
1088 res = g->gcstepmul; 1088 res = g->gcstepmul;
1089 if (data < 40) data = 40; /* avoid ridiculous low values (and 0) */
1089 g->gcstepmul = data; 1090 g->gcstepmul = data;
1090 break; 1091 break;
1091 } 1092 }