pike.git/
src/
operators.c
Branch:
Tag:
Non-build tags
All tags
No tags
2010-11-18
2010-11-18 17:53:48 by Henrik Grubbström (Grubba) <grubba@grubba.org>
2cdbf6d76e7f3f9f554fac4ff9deff32cbed70fd (
6
lines) (+
4
/-
2
)
[
Show
|
Annotate
]
Branch:
7.8
The literal zero is a constant. Fixes [LysLysKOM 18811081].
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.258 2010/05/27 23:16:59 mast Exp $
+
||
$Id$
*/ #include "global.h"
1981:
node **arg; int argno; for (argno = 0; (arg = my_get_arg(&_CDR(n), argno)); argno++) {
-
if (match_types(object_type_string, (*arg)->type)) {
+
if (
((*arg)->type != zero_type_string) &&
+
match_types(object_type_string, (*arg)->type)) {
n->node_info |= OPT_SIDE_EFFECT; n->tree_info |= OPT_SIDE_EFFECT; return NULL;