From f324ae7f09abc49dbd808cda3676af5991eb17d7 Mon Sep 17 00:00:00 2001 From: Alexandre Julliard Date: Thu, 14 May 2015 17:15:14 +0900 Subject: [PATCH] jscript: Avoid UINT32_MAX. --- dlls/jscript/string.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/dlls/jscript/string.c b/dlls/jscript/string.c index 73de5172460..582a289d39e 100644 --- a/dlls/jscript/string.c +++ b/dlls/jscript/string.c @@ -26,8 +26,6 @@ WINE_DEFAULT_DEBUG_CHANNEL(jscript); -#define UINT32_MAX 0xffffffff - typedef struct { jsdisp_t dispex; jsstr_t *str; @@ -1136,7 +1134,7 @@ static HRESULT String_split(script_ctx_t *ctx, vdisp_t *jsthis, WORD flags, unsi match_state_t match_result, *match_ptr = &match_result; DWORD length, i, match_len = 0; const WCHAR *ptr, *ptr2, *str, *match_str = NULL; - unsigned limit = UINT32_MAX; + unsigned limit = ~0u; jsdisp_t *array, *regexp = NULL; jsstr_t *jsstr, *match_jsstr, *tmp_str; HRESULT hres;