ugh. Fix to placate egcs. |static_cast| should be sufficient for a |void*|, but egcs seems to need |reinterpret_cast|

git-svn-id: svn://10.0.0.236/trunk@70558 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
scc%mozilla.org
2000-05-20 19:08:36 +00:00
parent 9e916f41af
commit d029bb7e31
3 changed files with 6 additions and 6 deletions

View File

@@ -307,7 +307,7 @@ struct nsCharTraits<char>
const char*
find( const char* s, size_t n, char c )
{
return NS_STATIC_CAST(const char*, memchr(s, to_int_type(c), n));
return NS_REINTERPRET_CAST(const char*, memchr(s, to_int_type(c), n));
}
#if 0
@@ -433,7 +433,7 @@ struct nsCharTraits<wchar_t>
const wchar_t*
find( const wchar_t* s, size_t n, wchar_t c )
{
return NS_STATIC_CAST(const wchar_t*, wmemchr(s, to_int_type(c), n));
return NS_REINTERPRET_CAST(const wchar_t*, wmemchr(s, to_int_type(c), n));
}
#if 0