Skip to content

Commit 4010db5

Browse files
authored
Add support for w.d format (#361)
These appear to be stored without a specific name. Defined here: https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/leforinforref/n1n7bmvs1brl23n1dj9cbzau39df.htm
1 parent 5c44678 commit 4010db5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/sas/readstat_sas7bdat_read.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -700,7 +700,7 @@ static readstat_variable_t *sas7bdat_init_variable(sas7bdat_ctx_t *ctx, int i,
700700
goto cleanup;
701701
}
702702
size_t len = strlen(variable->format);
703-
if (len && ctx->col_info[i].format_width) {
703+
if (ctx->col_info[i].format_width) {
704704
len += snprintf(variable->format + len, sizeof(variable->format) - len,
705705
"%d", ctx->col_info[i].format_width);
706706
}

0 commit comments

Comments
 (0)