diff options
-rw-r--r-- | xen/tools/symbols.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; } |