[PATCH v2 1/6] tools/winebuild: Use unsigned long in spec file variable parameters.

Zebediah Figura z.figura12 at gmail.com
Thu Feb 2 12:27:08 CST 2017


Signed-off-by: Zebediah Figura <z.figura12 at gmail.com>
---
 tools/winebuild/parser.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/tools/winebuild/parser.c b/tools/winebuild/parser.c
index 1d7b84e..9512ea6 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 long 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;
-- 
2.7.4




More information about the wine-patches mailing list