jscript: Avoid UINT32_MAX.

This commit is contained in:
Alexandre Julliard 2015-05-14 17:15:14 +09:00
parent d93781f29b
commit f324ae7f09
1 changed files with 1 additions and 3 deletions

View File

@ -26,8 +26,6 @@
WINE_DEFAULT_DEBUG_CHANNEL(jscript); WINE_DEFAULT_DEBUG_CHANNEL(jscript);
#define UINT32_MAX 0xffffffff
typedef struct { typedef struct {
jsdisp_t dispex; jsdisp_t dispex;
jsstr_t *str; 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; match_state_t match_result, *match_ptr = &match_result;
DWORD length, i, match_len = 0; DWORD length, i, match_len = 0;
const WCHAR *ptr, *ptr2, *str, *match_str = NULL; const WCHAR *ptr, *ptr2, *str, *match_str = NULL;
unsigned limit = UINT32_MAX; unsigned limit = ~0u;
jsdisp_t *array, *regexp = NULL; jsdisp_t *array, *regexp = NULL;
jsstr_t *jsstr, *match_jsstr, *tmp_str; jsstr_t *jsstr, *match_jsstr, *tmp_str;
HRESULT hres; HRESULT hres;