From 1e795f46a27c7f426ba8153d482025380723600b Mon Sep 17 00:00:00 2001 From: Henrik Wallin <hedda@lysator.liu.se> Date: Wed, 22 Jul 1998 12:22:22 +0200 Subject: [PATCH] Array.everynth can now take 0 och 1 as a third argument. Rev: src/builtin_functions.c:1.118 --- src/builtin_functions.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/builtin_functions.c b/src/builtin_functions.c index d9da84e577..1ad0decae4 100644 --- a/src/builtin_functions.c +++ b/src/builtin_functions.c @@ -4,7 +4,7 @@ ||| See the files COPYING and DISCLAIMER for more information. \*/ #include "global.h" -RCSID("$Id: builtin_functions.c,v 1.117 1998/07/19 22:49:08 grubba Exp $"); +RCSID("$Id: builtin_functions.c,v 1.118 1998/07/22 10:22:22 hedda Exp $"); #include "interpret.h" #include "svalue.h" #include "pike_macros.h" @@ -2852,7 +2852,7 @@ void f_everynth(INT32 args) default: case 3: start=sp[2-args].u.integer; - if(start<2) error("Third argument to everynth is negative.\n"); + if(start<0) error("Third argument to everynth is negative.\n"); case 2: n=sp[1-args].u.integer; if(n<1) error("Second argument to everynth is negative.\n"); -- GitLab