Skip to content

Commit

Permalink
Fix Win build
Browse files Browse the repository at this point in the history
  • Loading branch information
slobodan-ilic committed Jun 14, 2024
1 parent 7cc0ef8 commit 41a7ac4
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/spss/readstat_sav_read.c
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ static readstat_error_t parse_mr_counted_value(const char **next_part, mr_set_t
}
(*next_part)++;
digit_start = (*next_part);
for (int i = 0; i < internal_count && isdigit(*(*next_part)); i++) {
for (int i = 0; i < internal_count && isdigit((unsigned char)*(*next_part)); i++) {
(*next_part)++;
}
result->counted_value = (int)strtol(digit_start, NULL, 10);
Expand All @@ -181,6 +181,7 @@ static readstat_error_t parse_mr_counted_value(const char **next_part, mr_set_t
return retval;
}


static readstat_error_t parse_mr_line(const char *line, mr_set_t *result) {
readstat_error_t retval = READSTAT_OK;
*result = (mr_set_t){0};
Expand All @@ -207,7 +208,7 @@ static readstat_error_t parse_mr_line(const char *line, mr_set_t *result) {
}
next_part++;
const char *digit_start = next_part;
while (isdigit(*next_part)) {
while (isdigit((unsigned char)*next_part)) {
next_part++;
}
if (*next_part != ' ') {
Expand Down

0 comments on commit 41a7ac4

Please sign in to comment.