mirror of
https://github.com/reactos/wine.git
synced 2024-11-23 20:00:00 +00:00
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>
This commit is contained in:
parent
e31dd0f384
commit
544ea174a6
@ -80,7 +80,7 @@ enum arg_type
|
||||
typedef struct
|
||||
{
|
||||
int n_values;
|
||||
int *values;
|
||||
unsigned int *values;
|
||||
} ORD_VARIABLE;
|
||||
|
||||
typedef struct
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user