pike.git/
src/
las.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 (
8
lines) (+
5
/-
3
)
[
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: las.c,v 1.443 2010/04/15 16:54:55 grubba Exp $
+
||
$Id$
*/ #include "global.h"
1301:
*/ copy_pike_type(res->type, type);
-
if(match_types(object_type_string, type) ||
-
match_types(program_type_string, type))
+
if(
(type != zero_type_string) &&
+
(
match_types(object_type_string, type) ||
+
match_types(program_type_string, type))
)
res->node_info |= OPT_SIDE_EFFECT; res->tree_info |= n->tree_info;