From 7b5aa0976a8a09f12ccaa67c0d9ceb78b0fb35d9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Henrik=20Grubbstr=C3=B6m=20=28Grubba=29?= <grubba@grubba.org> Date: Mon, 29 Feb 2016 22:52:24 +0100 Subject: [PATCH] GC: Fixed typo in type declaration for gc(). It should now accept being called without arguments again. Thanks to Jeff Hungerford <hungerf3-roxen3@house.ofdoom.com> for the report. Fixes [Pike mailinglist 14512]/[LysLysKOM 21651115]. --- src/builtin_functions.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/builtin_functions.c b/src/builtin_functions.c index 6b7659c576..5628d0a22a 100644 --- a/src/builtin_functions.c +++ b/src/builtin_functions.c @@ -10205,7 +10205,7 @@ void init_builtin_efuns(void) /* function(:int) */ - ADD_EFUN("gc", f_gc, tFunc(tMix, tInt), OPT_SIDE_EFFECT); + ADD_EFUN("gc", f_gc, tFunc(tOr(tMix, tVoid), tInt), OPT_SIDE_EFFECT); /* function(:string) */ ADD_EFUN("version", f_version,tFunc(tNone,tStr), OPT_TRY_OPTIMIZE); -- GitLab