crt/stdio: Move `__pformat_intarg_t exponent` closer to its use So it's apparent that the whole 128-bit union is initialized. Signed-off-by: LIU Hao <lh_mouse@126.com>
diff --git a/mingw-w64-crt/stdio/mingw_pformat.c b/mingw-w64-crt/stdio/mingw_pformat.c index 3470c06..00e4b23 100644 --- a/mingw-w64-crt/stdio/mingw_pformat.c +++ b/mingw-w64-crt/stdio/mingw_pformat.c
@@ -1973,7 +1973,7 @@ * representation of the argument value. */ char buf[18 + 6], *p = buf; - __pformat_intarg_t exponent; short exp_width = 2; + short exp_width = 2; if (value.__pformat_fpreg_mantissa != 0 || value.__pformat_fpreg_exponent != 0) @@ -2225,6 +2225,7 @@ stream->width += exp_width; stream->flags |= PFORMAT_SIGNED; /* sign extend */ + __pformat_intarg_t exponent; exponent.__pformat_u128_t.t128.digits[1] = (value.__pformat_fpreg_exponent < 0) ? -1 : 0; exponent.__pformat_u128_t.t128.digits[0] = value.__pformat_fpreg_exponent; __pformat_int( exponent, stream );