From 25c28db4868e11cb08378d89a099e4401839d4ed Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Henrik=20Grubbstr=C3=B6m=20=28Grubba=29?=
 <grubba@grubba.org>
Date: Wed, 29 Dec 1999 18:55:05 +0100
Subject: [PATCH] `==() and `!=() are now marked as OPT_WEAK_TYPE.

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

diff --git a/src/operators.c b/src/operators.c
index 2c897fb5a2..62b8837a54 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.83 1999/12/27 18:30:54 grubba Exp $");
+RCSID("$Id: operators.c,v 1.84 1999/12/29 17:55:05 grubba Exp $");
 #include "interpret.h"
 #include "svalue.h"
 #include "multiset.h"
@@ -2468,7 +2468,7 @@ void init_operators(void)
 		 tFuncV(tOr3(tObj,tProgram,tFunction) tMix,tMix,tInt01),
 		 tFuncV(tMix tOr3(tObj,tProgram,tFunction),tMix,tInt01),
 		 tFuncV(tType tType,tOr3(tProgram,tFunction,tType),tInt01)),
-	    OPT_TRY_OPTIMIZE,optimize_eq,generate_comparison);
+	    OPT_WEAK_TYPE|OPT_TRY_OPTIMIZE,optimize_eq,generate_comparison);
   /* function(mixed...:int) */
   ADD_EFUN2("`!=",f_ne,
 	    tOr5(tFuncV(tOr(tInt,tFloat) tOr(tInt,tFloat),
@@ -2478,7 +2478,7 @@ void init_operators(void)
 		 tFuncV(tOr3(tObj,tProgram,tFunction) tMix,tMix,tInt01),
 		 tFuncV(tMix tOr3(tObj,tProgram,tFunction),tMix,tInt01),
 		 tFuncV(tType tType,tOr3(tProgram,tFunction,tType),tInt01)),
-	    OPT_TRY_OPTIMIZE,0,generate_comparison);
+	    OPT_WEAK_TYPE|OPT_TRY_OPTIMIZE,0,generate_comparison);
   /* function(mixed:int) */
   ADD_EFUN2("`!",f_not,tFuncV(tMix,tVoid,tInt01),
 	    OPT_TRY_OPTIMIZE,optimize_not,generate_not);
-- 
GitLab