X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fdata%2Fpor-file-writer.c;h=672add4101cff3520bcd008ea0395a3805a41183;hb=6cbd13aef6c8f5f7c363a6ebc5468863b558c4d3;hp=f5507522b7a81adf0684c13b0f242f58be0e37f0;hpb=770c0535c142a0d74cf33f02940100cba9cc1a99;p=pspp diff --git a/src/data/por-file-writer.c b/src/data/por-file-writer.c index f5507522b7..672add4101 100644 --- a/src/data/por-file-writer.c +++ b/src/data/por-file-writer.c @@ -316,7 +316,7 @@ write_value (struct pfm_writer *w, const union value *v, int width) { width = MIN (width, MAX_POR_WIDTH); write_int (w, width); - buf_write (w, value_str (v, width), width); + buf_write (w, v->s, width); } } @@ -812,7 +812,7 @@ format_trig_double (long double value, int base_10_precision, char output[]) value -= chunk; /* Append the chunk, in base 30, to trigs[]. */ - for (trigs_left = CHUNK_SIZE; chunk > 0 && trigs_left > 0; ) + for (trigs_left = CHUNK_SIZE; chunk > 0 && trigs_left > 0;) { trigs[trig_cnt + --trigs_left] = chunk % 30; chunk /= 30;