ia64/xen-unstable

changeset 13326:037f49cd8016

Fix signedness issue in private implementation of memmem().
Signed-off-by: Alex Williamson <alex.williamson@hp.com>
author kfraser@localhost.localdomain
date Mon Jan 08 14:25:28 2007 +0000 (2007-01-08)
parents 7878db2276c9
children 5eeb4bac1b17
files xen/tools/symbols.c
line diff
     1.1 --- a/xen/tools/symbols.c	Mon Jan 08 14:24:42 2007 +0000
     1.2 +++ b/xen/tools/symbols.c	Mon Jan 08 14:25:28 2007 +0000
     1.3 @@ -353,7 +353,7 @@ static void build_initial_tok_table(void
     1.4  static void *memmem_pvt(void *h, size_t hlen, void *n, size_t nlen)
     1.5  {
     1.6  	char *p;
     1.7 -	for (p = h; (p - (char *)h) <= (hlen - nlen); p++)
     1.8 +	for (p = h; (p - (char *)h) <= (long)(hlen - nlen); p++)
     1.9  		if (!memcmp(p, n, nlen)) return p;
    1.10  	return NULL;
    1.11  }