Alexandre Julliard : jscript: Avoid UINT32_MAX.

Alexandre Julliard julliard at wine.codeweavers.com
Thu May 14 06:22:36 CDT 2015


Module: wine
Branch: master
Commit: f324ae7f09abc49dbd808cda3676af5991eb17d7
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=f324ae7f09abc49dbd808cda3676af5991eb17d7

Author: Alexandre Julliard <julliard at winehq.org>
Date:   Thu May 14 17:15:14 2015 +0900

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 73de517..582a289 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;




More information about the wine-cvs mailing list