Branch: Tag:

2006-08-21

2006-08-21 18:28:18 by Henrik Grubbström (Grubba) <grubba@grubba.org>

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) {