winebuild: Use unsigned int in spec file variable parameters.

Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
oldstable
Zebediah Figura 2017-02-01 22:23:53 -06:00 committed by Alexandre Julliard
parent e31dd0f384
commit 544ea174a6
2 changed files with 3 additions and 3 deletions

View File

@ -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

View File

@ -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 )
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;