Zebediah Figura : winebuild: Use unsigned int in spec file variable parameters.

Alexandre Julliard julliard at winehq.org
Thu Apr 20 12:35:12 CDT 2017


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

Author: Zebediah Figura <z.figura12 at gmail.com>
Date:   Wed Feb  1 22:23:53 2017 -0600

winebuild: Use unsigned int in spec file variable parameters.

Signed-off-by: Zebediah Figura <z.figura12 at gmail.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
(cherry picked from commit 544ea174a61923a36b0eb2da6620f7f09a066e7f)
Signed-off-by: Michael Stefaniuc <mstefani at winehq.org>

---

 tools/winebuild/build.h  | 2 +-
 tools/winebuild/parser.c | 4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/tools/winebuild/build.h b/tools/winebuild/build.h
index 03b88fa..398d542 100644
--- a/tools/winebuild/build.h
+++ b/tools/winebuild/build.h
@@ -80,7 +80,7 @@ enum arg_type
 typedef struct
 {
     int n_values;
-    int *values;
+    unsigned int *values;
 } ORD_VARIABLE;
 
 typedef struct
diff --git a/tools/winebuild/parser.c b/tools/winebuild/parser.c
index 1d7b84e..2762a8c 100644
--- a/tools/winebuild/parser.c
+++ b/tools/winebuild/parser.c
@@ -182,7 +182,7 @@ static ORDDEF *add_entry_point( DLLSPEC *spec )
 static int parse_spec_variable( ORDDEF *odp, DLLSPEC *spec )
 {
     char *endptr;
-    int *value_array;
+    unsigned int *value_array;
     int n_values;
     int value_array_size;
     const char *token;
@@ -214,7 +214,7 @@ static int parse_spec_variable( ORDDEF *odp, DLLSPEC *spec )
 	if (*token == ')')
 	    break;
 
-	value_array[n_values++] = strtol(token, &endptr, 0);
+	value_array[n_values++] = strtoul(token, &endptr, 0);
 	if (n_values == value_array_size)
 	{
 	    value_array_size += 25;




More information about the wine-cvs mailing list