Commit 544ea174 authored by Zebediah Figura's avatar Zebediah Figura Committed by Alexandre Julliard

winebuild: Use unsigned int in spec file variable parameters.

parent e31dd0f3
...@@ -80,7 +80,7 @@ enum arg_type ...@@ -80,7 +80,7 @@ enum arg_type
typedef struct typedef struct
{ {
int n_values; int n_values;
int *values; unsigned int *values;
} ORD_VARIABLE; } ORD_VARIABLE;
typedef struct typedef struct
......
...@@ -182,7 +182,7 @@ static ORDDEF *add_entry_point( DLLSPEC *spec ) ...@@ -182,7 +182,7 @@ static ORDDEF *add_entry_point( DLLSPEC *spec )
static int parse_spec_variable( ORDDEF *odp, DLLSPEC *spec ) static int parse_spec_variable( ORDDEF *odp, DLLSPEC *spec )
{ {
char *endptr; char *endptr;
int *value_array; unsigned int *value_array;
int n_values; int n_values;
int value_array_size; int value_array_size;
const char *token; const char *token;
...@@ -214,7 +214,7 @@ static int parse_spec_variable( ORDDEF *odp, DLLSPEC *spec ) ...@@ -214,7 +214,7 @@ static int parse_spec_variable( ORDDEF *odp, DLLSPEC *spec )
if (*token == ')') if (*token == ')')
break; break;
value_array[n_values++] = strtol(token, &endptr, 0); value_array[n_values++] = strtoul(token, &endptr, 0);
if (n_values == value_array_size) if (n_values == value_array_size)
{ {
value_array_size += 25; value_array_size += 25;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment