From 2e2f265594c88e9705e939ebe376c92b2238aa27 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fredrik=20H=C3=BCbinette=20=28Hubbe=29?= <hubbe@hubbe.net> Date: Mon, 1 Mar 1999 19:22:13 -0800 Subject: [PATCH] bugfix Rev: src/operators.c:1.49 --- src/operators.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/operators.c b/src/operators.c index 8c8472bd8e..43f67b2a0b 100644 --- a/src/operators.c +++ b/src/operators.c @@ -5,7 +5,7 @@ \*/ #include "global.h" #include <math.h> -RCSID("$Id: operators.c,v 1.48 1999/03/02 03:13:24 hubbe Exp $"); +RCSID("$Id: operators.c,v 1.49 1999/03/02 03:22:13 hubbe Exp $"); #include "interpret.h" #include "svalue.h" #include "multiset.h" @@ -1940,7 +1940,7 @@ void init_operators(void) /* function(mixed...:int) */ ADD_EFUN2("`!=",f_ne,tFuncV(,tMix,tInt),OPT_TRY_OPTIMIZE,0,generate_comparison); /* function(mixed:int) */ - add_efun2("`!",f_not,"!function(int(0..0):mixed)&function(mixed:int(0..0))|function(int(0..0):int(1..1))",OPT_TRY_OPTIMIZE,optimize_not,generate_not); + add_efun2("`!",f_not,"function(mixed:int(0..1))",OPT_TRY_OPTIMIZE,optimize_not,generate_not); #define CMP_TYPE "!function(!object...:mixed)&function(mixed...:int(0..1))|function(int|float...:int(0..1))|function(string...:int(0..1))" add_efun2("`<", f_lt,CMP_TYPE,OPT_TRY_OPTIMIZE,0,generate_comparison); -- GitLab