From: Owen Shepherd Date: Wed, 22 Aug 2012 13:22:23 +0000 (+0100) Subject: wcsrchr: add (wchar_t*) cast to found assignment (previously was assigning a const... X-Git-Url: https://pd.if.org/git/?p=pdclib.old;a=commitdiff_plain;h=2bcf794c890950bbf6a7ef4001a8e01152b0e45c wcsrchr: add (wchar_t*) cast to found assignment (previously was assigning a const wchar_t without cast) --- diff --git a/functions/wchar/wcsrchr.c b/functions/wchar/wcsrchr.c index 396da4f..f91f998 100644 --- a/functions/wchar/wcsrchr.c +++ b/functions/wchar/wcsrchr.c @@ -15,7 +15,7 @@ wchar_t *wcsrchr(const wchar_t * haystack, wchar_t needle) { wchar_t *found = NULL; while(*haystack) { - if(*haystack == needle) found = haystack; + if(*haystack == needle) found = (wchar_t*) haystack; haystack++; } return found;