pike.git/
src/
builtin_functions.c
Branch:
Tag:
Non-build tags
All tags
No tags
2005-02-10
2005-02-10 01:37:31 by Martin Nilsson <mani@lysator.liu.se>
c4c3990ce1880e0502aadc724b038cdb5f9299f0 (
12
lines) (+
9
/-
3
)
[
Show
|
Annotate
]
Branch:
7.6
Fix some bugs in the type_field of arrays generated by map.
Rev: src/builtin_functions.c:1.553
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.
552
2004
/
12
/
22
12
:
48
:
56
grubba
Exp $
+
|| $Id: builtin_functions.c,v 1.
553
2005
/
02
/
10
01
:
37
:
31
nilsson
Exp $
*/ #include "global.h"
-
RCSID("$Id: builtin_functions.c,v 1.
552
2004
/
12
/
22
12
:
48
:
56
grubba
Exp $");
+
RCSID("$Id: builtin_functions.c,v 1.
553
2005
/
02
/
10
01
:
37
:
31
nilsson
Exp $");
#include "interpret.h" #include "svalue.h" #include "pike_macros.h"
7270:
types |= 1 << ITEM(d)[i].type; pop_n_elems(Pike_sp-spbase); }
+
else
+
types |= BIT_INT;
} }else{ for (i=0; i<n; i++)
7282:
types |= 1 << ITEM(d)[i].type; pop_n_elems(Pike_sp-spbase); }
+
else
+
types |= BIT_INT;
} } }else{
7325:
f_arrow(2); if(UNSAFE_IS_ZERO(Pike_sp-1)) {
+
types |= BIT_INT;
pop_stack(); continue; }
7354:
default: SIMPLE_BAD_ARG_ERROR("map",2, "function|program|object|"
-
"string|int(0)|multiset");
+
"string|int(0
..0
)|multiset");
} }