pike.git/
src/
array.c
Branch:
Tag:
Non-build tags
All tags
No tags
2004-09-17
2004-09-17 15:02:58 by Martin Nilsson <mani@lysator.liu.se>
80dc1a298294337a055df45512c8d2c0fa3ea269 (
7
lines) (+
4
/-
3
)
[
Show
|
Annotate
]
Branch:
7.9
Fix warning.
Rev: src/array.c:1.167
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: array.c,v 1.
166
2004/09/17
14
:
52
:
20
nilsson Exp $
+
|| $Id: array.c,v 1.
167
2004/09/17
15
:
02
:
58
nilsson Exp $
*/ #include "global.h"
27:
#include "multiset.h" #include "mapping.h"
-
RCSID("$Id: array.c,v 1.
166
2004/09/17
14
:
52
:
20
nilsson Exp $");
+
RCSID("$Id: array.c,v 1.
167
2004/09/17
15
:
02
:
58
nilsson Exp $");
PMOD_EXPORT struct array empty_array= {
93:
/* Limits size to (1<<29)-4 */ if( (size+extra_space-1) >
-
(ULONG_MAX-sizeof(struct array))/sizeof(struct svalue) )
+
(
INT32)((
ULONG_MAX-sizeof(struct array))/sizeof(struct svalue)
)
)
Pike_error("Too large array (memory size exceeds size of size_t)\n"); v=(struct array *)malloc(sizeof(struct array)+ (size+extra_space-1)*sizeof(struct svalue));