pike.git/
src/
builtin_functions.c
Branch:
Tag:
Non-build tags
All tags
No tags
2008-01-13
2008-01-13 19:20:17 by Henrik Grubbström (Grubba) <grubba@grubba.org>
5527f75c74a37302ad7111bedbfa7246061121b4 (
8
lines) (+
5
/-
3
)
[
Show
|
Annotate
]
Branch:
7.9
Fixed obscure bug in optimize_replace().
Rev: src/builtin_functions.c:1.647
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: builtin_functions.c,v 1.
646
2008/01/
08
17:
19:
29
grubba Exp $
+
|| $Id: builtin_functions.c,v 1.
647
2008/01/
13
19:
20:17
grubba Exp $
*/ #include "global.h"
3896:
struct pike_type *array_zero; struct pike_type *mapping_zero;
+
if (!arg0) return NULL;
+
MAKE_CONSTANT_TYPE(array_zero, tArr(tZero)); MAKE_CONSTANT_TYPE(mapping_zero, tMap(tZero, tZero));
-
if (
arg0 &&
-
(pike_types_le(array_zero, (*arg0)->type) ||
+
if ((pike_types_le(array_zero, (*arg0)->type) ||
pike_types_le(mapping_zero, (*arg0)->type))) { /* First argument might be an array or a mapping. *