diff options
Diffstat (limited to 'cppsetup.c')
-rw-r--r-- | cppsetup.c | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -39,14 +39,14 @@ static const char * my_if_errors(IfParser *ip, const char *cp, const char *expecting) { struct _parse_data *pd = (struct _parse_data *) ip->data; - int lineno = pd->filep->f_line; + long lineno = pd->filep->f_line; const char *filename = pd->filename; char prefix[300]; - int prefixlen; - int i; + long prefixlen; + long i; - snprintf(prefix, sizeof(prefix), "\"%s\":%d", filename, lineno); - prefixlen = strlen(prefix); + snprintf(prefix, sizeof(prefix), "\"%s\":%ld", filename, lineno); + prefixlen = (long) strlen(prefix); fprintf(stderr, "%s: %s", prefix, pd->line); i = cp - pd->line; if (i > 0 && pd->line[i - 1] != '\n') { |