From a6004eb295d3856d6c729f482c760884d50bfbbe Mon Sep 17 00:00:00 2001 From: "kfraser@localhost.localdomain" Date: Mon, 8 Jan 2007 14:25:28 +0000 Subject: Fix signedness issue in private implementation of memmem(). Signed-off-by: Alex Williamson --- xen/tools/symbols.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'xen/tools') diff --git a/xen/tools/symbols.c b/xen/tools/symbols.c index 00f1a43037..c21e012206 100644 --- a/xen/tools/symbols.c +++ b/xen/tools/symbols.c @@ -353,7 +353,7 @@ static void build_initial_tok_table(void) static void *memmem_pvt(void *h, size_t hlen, void *n, size_t nlen) { char *p; - for (p = h; (p - (char *)h) <= (hlen - nlen); p++) + for (p = h; (p - (char *)h) <= (long)(hlen - nlen); p++) if (!memcmp(p, n, nlen)) return p; return NULL; } -- cgit v1.2.3