pike.git/
src/
operators.c
Branch:
Tag:
Non-build tags
All tags
No tags
2006-08-21
2006-08-21 18:28:18 by Henrik Grubbström (Grubba) <grubba@grubba.org>
25ecf91f88323d0c49fbc73cee33bab7df3e7120 (
6
lines) (+
4
/-
2
)
[
Show
|
Annotate
]
Branch:
7.9
Bugfix.
Rev: src/operators.c:1.214
2:
|| This file is part of Pike. For copyright information see COPYRIGHT. || Pike is distributed under GPL, LGPL and MPL. See the file COPYING || for more information.
-
|| $Id: operators.c,v 1.
213
2006/08/21 18:
14
:
05
grubba Exp $
+
|| $Id: operators.c,v 1.
214
2006/08/21 18:
28
:
18
grubba Exp $
*/ #include "global.h"
928:
case T_NOT: return !low_check_soft_cast(s, type->car); }
+
if ((s->type == PIKE_T_INT) && !s->u.integer) return 1;
if (s->type == type->type) {
-
if (type->type == PIKE_T_INT) return 1;
+
if (type->type == PIKE_T_INT) return 1;
/* FIXME: Check range. */
if (type->type == PIKE_T_FLOAT) return 1; if (type->type == PIKE_T_STRING) return 1; switch(type->type) {