From 22e81dde73c3f8d7a4e7179613dcc327f171503f Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Henrik=20Grubbstr=C3=B6m=20=28Grubba=29?=
 <grubba@grubba.org>
Date: Thu, 3 Aug 2000 19:52:55 +0200
Subject: [PATCH] Reverted.

Rev: src/operators.c:1.95
---
 src/operators.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/operators.c b/src/operators.c
index d0869c23e8..e5ce15e076 100644
--- a/src/operators.c
+++ b/src/operators.c
@@ -6,7 +6,7 @@
 /**/
 #include "global.h"
 #include <math.h>
-RCSID("$Id: operators.c,v 1.94 2000/08/03 17:20:28 grubba Exp $");
+RCSID("$Id: operators.c,v 1.95 2000/08/03 17:52:55 grubba Exp $");
 #include "interpret.h"
 #include "svalue.h"
 #include "multiset.h"
@@ -2328,7 +2328,7 @@ PMOD_EXPORT void o_range(void)
   case T_STRING:
   {
     struct pike_string *s;
-    if(to+1>=sp[-1].u.string->len)
+    if(to >= sp[-1].u.string->len-1)
     {
       if(from==0) return;
       to = sp[-1].u.string->len-1;
@@ -2349,7 +2349,7 @@ PMOD_EXPORT void o_range(void)
   case T_ARRAY:
   {
     struct array *a;
-    if(to+1 >= sp[-1].u.array->size)
+    if(to >= sp[-1].u.array->size-1)
     {
       to = sp[-1].u.array->size-1;
 
-- 
GitLab