summaryrefslogtreecommitdiff
path: root/utils.c
diff options
context:
space:
mode:
authorMark Spencer <markster@digium.com>2005-05-27 21:10:06 +0000
committerMark Spencer <markster@digium.com>2005-05-27 21:10:06 +0000
commita67bb4c8fc6657e35be0cfb3ad92a095b1234afd (patch)
tree0199253666d28739036789713419b9e168de0d28 /utils.c
parente596f53c9eaeae17b66366c28727af67ba09de2f (diff)
Fix cast to int from pointer (duh!)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5779 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'utils.c')
-rwxr-xr-xutils.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/utils.c b/utils.c
index ee6074348..e2ce549eb 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;
}