X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fdata-out.c;h=5fce84f6c433b1075db40d5af774ec98eaedfca0;hb=397e4b99a356c51cab364f14373c15982db14d87;hp=6439b607045f18e5566deec8a438b9197f88d03e;hpb=317e6b778833b5dcd5dd195c0b677835a8024b2a;p=pspp diff --git a/src/data-out.c b/src/data-out.c index 6439b60704..5fce84f6c4 100644 --- a/src/data-out.c +++ b/src/data-out.c @@ -193,10 +193,7 @@ data_out (char *s, const struct fmt_spec *fp, const union value *v) void num_to_string (double v, char *s, int w, int d) { - struct fmt_spec f; - f.type = FMT_F; - f.w = w; - f.d = d; + struct fmt_spec f = make_output_format (FMT_F, w, d); convert_F (s, &f, v); }