diff options
| -rw-r--r-- | csv.c | 6 |
1 files changed, 3 insertions, 3 deletions
| @@ -455,7 +455,7 @@ csv_write_field(FILE *out, const char *field, const csv_options_t * const csv_op | |||
| 455 | assert(field != NULL); | 455 | assert(field != NULL); |
| 456 | assert(out != NULL); | 456 | assert(out != NULL); |
| 457 | 457 | ||
| 458 | const char DELIM = csv_options->field_delimiter; | 458 | register const int DELIM = csv_options->field_delimiter; |
| 459 | 459 | ||
| 460 | if ( *field != '\0' ) { | 460 | if ( *field != '\0' ) { |
| 461 | putc(DELIM, out); | 461 | putc(DELIM, out); |
| @@ -487,7 +487,7 @@ csv_write(FILE *out, const csv_t * const csv) | |||
| 487 | assert(csv->csv_string.str != NULL); | 487 | assert(csv->csv_string.str != NULL); |
| 488 | assert(csv->csv_field.fields != NULL); | 488 | assert(csv->csv_field.fields != NULL); |
| 489 | 489 | ||
| 490 | const char SEP = csv->csv_options->field_separator; | 490 | register const int SEP = csv->csv_options->field_separator; |
| 491 | 491 | ||
| 492 | if ( 0 < csv->csv_field.pos ) { | 492 | if ( 0 < csv->csv_field.pos ) { |
| 493 | const char *str = csv->csv_string.str; | 493 | const char *str = csv->csv_string.str; |
| @@ -518,7 +518,7 @@ csv_write_ex(FILE *out, int n, const char *fields[], const csv_options_t * csv_o | |||
| 518 | csv_options = &csv_default_options; | 518 | csv_options = &csv_default_options; |
| 519 | } | 519 | } |
| 520 | 520 | ||
| 521 | const char SEP = csv_options->field_separator; | 521 | register const int SEP = csv_options->field_separator; |
| 522 | 522 | ||
| 523 | // process first field | 523 | // process first field |
| 524 | if ( 0 != n && *fields != NULL ) { | 524 | if ( 0 != n && *fields != NULL ) { |
