From: Mark Spencer Date: Fri, 27 May 2005 21:10:06 +0000 (+0000) Subject: Fix cast to int from pointer (duh!) X-Git-Tag: 1.2.0-beta1~568 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=a67bb4c8fc6657e35be0cfb3ad92a095b1234afd;p=thirdparty%2Fasterisk.git Fix cast to int from pointer (duh!) git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5779 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/utils.c b/utils.c index ee60743484..e2ce549eb1 100755 --- a/utils.c +++ b/utils.c @@ -503,7 +503,7 @@ char *ast_strcasestr(const char *haystack, const char *needle) offset = strstr(upper(haystack, u1, u1len), upper(needle, u2, u2len)); if (offset) { /* Return the offset into the original string */ - return ((char *)((unsigned int)haystack + (unsigned int)(offset - u1))); + return ((char *)((unsigned long)haystack + (unsigned long)(offset - u1))); } else { return NULL; }