pike.git
/
src
/
operators.c
version
»
Context lines:
10
20
40
80
file
none
3
pike.git/src/operators.c:1:
/*\ ||| This file a part of Pike, and is copyright by Fredrik Hubinette ||| Pike is distributed as GPL (General Public License) ||| See the files COPYING and DISCLAIMER for more information. \*/ #include <math.h> #include "global.h"
-
RCSID("$Id: operators.c,v 1.
18
1997/
09
/
29
00
:
57
:
54
hubbe Exp $");
+
RCSID("$Id: operators.c,v 1.
19
1997/
10
/
10
20
:
19
:
58
hubbe Exp $");
#include "interpret.h" #include "svalue.h" #include "multiset.h" #include "mapping.h" #include "array.h" #include "stralloc.h" #include "opcodes.h" #include "operators.h" #include "language.h" #include "pike_memory.h"
pike.git/src/operators.c:1212:
error("Bad argument to unary minus\n"); } } void o_range(void) { INT32 from,to; if(sp[-3].type==T_OBJECT) {
-
CALL_OPERATOR(LFUN_INDEX,
2
);
+
CALL_OPERATOR(LFUN_INDEX,
3
);
return; } if(sp[-2].type != T_INT) error("Bad argument 1 to [ .. ]\n"); if(sp[-1].type != T_INT) error("Bad argument 2 to [ .. ]\n"); from=sp[-2].u.integer;