X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fdata%2Fdatasheet.c;h=f18cf8bdc2c05e77dc9b27980f2309dc764668ef;hb=4f36eb1c4b91f2ba7d95314e9b49cd643a01df46;hp=e9d2b2f3528f8aef209809df6677b4e76e0dc047;hpb=7a09f7e0127967c4f04a51f1b9cf91040c515c34;p=pspp diff --git a/src/data/datasheet.c b/src/data/datasheet.c index e9d2b2f352..f18cf8bdc2 100644 --- a/src/data/datasheet.c +++ b/src/data/datasheet.c @@ -175,7 +175,7 @@ value_to_data (const union value *value_, int width) if (width == 0) return &value->f; else - return value_str_rw (value, width); + return value->s; } /* Returns the number of bytes needed to store all the values in @@ -819,7 +819,7 @@ rw_case (struct datasheet *ds, enum rw_op op, assert (start_column + n_columns <= datasheet_get_n_columns (ds)); prow = axis_map (ds->rows, lrow); - for (i = 0; i < n_columns; ) + for (i = 0; i < n_columns;) { struct source *source = columns[i].source; size_t j;