pike.git/
src/
builtin_functions.c
Branch:
Tag:
Non-build tags
All tags
No tags
2008-05-01
2008-05-01 20:35:18 by Martin Stjernholm <mast@lysator.liu.se>
652b67aff5a25ca8b21182b70984e0c11dc90a9d (
5
lines) (+
4
/-
1
)
[
Show
|
Annotate
]
Branch:
7.9
Fixed a warning when LONG_MAX can't fit in INT32.
Rev: src/builtin_functions.c:1.657
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.
656
2008/
04
/
26
19
:
04
:
25
grubba
Exp $
+
|| $Id: builtin_functions.c,v 1.
657
2008/
05
/
01
20
:
35
:
18
mast
Exp $
*/ #include "global.h"
3622:
ctx->v = NULL; ctx->empty_repl = NULL;
+
#if INT32_MAX >= LONG_MAX
/* NOTE: The following test is needed, since sizeof(struct tupel) * is somewhat greater than sizeof(struct svalue). */
3630:
"exceeds %" PRINTSIZET "u).\n", from->size, (size_t)(LONG_MAX/sizeof(struct replace_many_tupel)));
+
#endif
ctx->v = (struct replace_many_tupel *) xalloc(sizeof(struct replace_many_tupel) * from->size);