Skip to content

Commit

Permalink
Reduce compiler warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
sdottaka committed Jul 3, 2022
1 parent c2660a0 commit b5cfeb3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Externals/crystaledit/editlib/ccrystaltextview.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5488,7 +5488,7 @@ static const TCHAR *memstr(const TCHAR *str1, size_t str1len, const TCHAR *str2,

inline TCHAR mytoupper(TCHAR ch)
{
return reinterpret_cast<TCHAR>(CharUpper(reinterpret_cast<LPTSTR>(ch)));
return static_cast<TCHAR>(reinterpret_cast<uintptr_t>(CharUpper(reinterpret_cast<LPTSTR>(ch))));
}

static const TCHAR *memistr(const TCHAR *str1, size_t str1len, const TCHAR *str2, size_t str2len)
Expand Down

0 comments on commit b5cfeb3

Please sign in to comment.