Skip to content

Commit 650bf47

Browse files
committed
Remove the INT_MAX and replace with 0x7fffffff
1 parent d11b44b commit 650bf47

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/CLR/Core/CLR_RT_UnicodeHelper.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ int CLR_RT_UnicodeHelper::CountNumberOfCharacters(int max)
2828
NATIVE_PROFILE_CLR_CORE();
2929
const CLR_UINT8 *pSrc = m_inputUTF8;
3030
int num = 0;
31-
int remaining = (max < 0) ? INT_MAX : max;
31+
int remaining = (max < 0) ? 0x7fffffff : max;
3232

3333
while (remaining > 0 && *pSrc)
3434
{

0 commit comments

Comments
 (0)