Skip to content
Snippets Groups Projects
Commit a67bb4c8 authored by Mark Spencer's avatar Mark Spencer
Browse files

Fix cast to int from pointer (duh!)

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5779 65c4cc65-6c06-0410-ace0-fbb531ad65f3
parent e596f53c
No related branches found
No related tags found
No related merge requests found
......@@ -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;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment