pike.git/
src/
builtin_functions.c
Branch:
Tag:
Non-build tags
All tags
No tags
2008-06-29
2008-06-29 12:05:54 by Martin Stjernholm <mast@lysator.liu.se>
7489bbd1d4f885b47a68ce7191a7806c059d72ec (
9
lines) (+
5
/-
4
)
[
Show
|
Annotate
]
Branch:
7.9
Fixed some warnings.
Rev: src/builtin_functions.c:1.679
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.
678
2008/06/
28
22
:
30
:54
nilsson
Exp $
+
|| $Id: builtin_functions.c,v 1.
679
2008/06/
29
12
:
05
:54
mast
Exp $
*/ #include "global.h"
3700:
if (ctx->v[num-1-e].ind->len) { x=index_shared_string(ctx->v[num-1-e].ind,0);
-
if (x<NELEM(ctx->set_start))
+
if (
(size_t)
x
<
NELEM(ctx->set_start))
ctx->set_start[x]=num-e-1; else ctx->other_start = num-e-1;
3708:
if (ctx->v[e].ind->len) { x=index_shared_string(ctx->v[e].ind,0);
-
if (x<NELEM(ctx->set_end))
+
if (
(size_t)
x
<
NELEM(ctx->set_end))
ctx->set_end[x]=e+1; } }
3835:
#define OPT_IS_CHAR(X) 1 CASE(0); #undef OPT_IS_CHAR
-
#define OPT_IS_CHAR(X) ((X) < NELEM(ctx->set_end))
+
#define OPT_IS_CHAR(X) ((
size_t) (
X) < NELEM(ctx->set_end))
CASE(1); CASE(2); #undef OPT_IS_CHAR