• R/O
  • HTTP
  • SSH
  • HTTPS

mingw-org-wsl: 提交

The MinGW.org Windows System Libraries


Commit MetaInfo

修訂5fe5d0aa874341cc015b0b71f5b5a6d9f3de8e7d (tree)
時間2016-11-02 04:45:15
作者Keith Marshall <keithmarshall@user...>
CommiterKeith Marshall

Log Message

Fix another printf() hex-float formatting bug.

Change Summary

差異

--- a/mingwrt/ChangeLog
+++ b/mingwrt/ChangeLog
@@ -1,3 +1,11 @@
1+2016-11-01 Keith Marshall <keithmarshall@users.sourceforge.net>
2+
3+ Fix another printf() hex-float formatting bug.
4+
5+ * mingwex/stdio/pformat.c (__pformat_emit_xfloat)
6+ [stream->flags & PFORMAT_ZEROFILL]: Ignore this; it should be...
7+ [(stream->flags & PFORMAT_JUSTIFY) == PFORMAT_ZEROFILL]: ...thus.
8+
19 2016-10-30 Keith Marshall <keithmarshall@users.sourceforge.net>
210
311 Work around MSDN inconsistencies in _finddata_t naming.
--- a/mingwrt/mingwex/stdio/pformat.c
+++ b/mingwrt/mingwex/stdio/pformat.c
@@ -1654,7 +1654,8 @@ void __pformat_emit_xfloat( __pformat_fpreg_t value, __pformat_t *stream )
16541654 /* If the `0' flag is in effect...
16551655 * Zero padding, to fill out the field, goes here...
16561656 */
1657- if( (stream->width > 0) && (stream->flags & PFORMAT_ZEROFILL) )
1657+ if( (stream->width > 0)
1658+ && ((stream->flags & PFORMAT_JUSTIFY) == PFORMAT_ZEROFILL) )
16581659 while( stream->width-- > 0 )
16591660 __pformat_putc( '0', stream );
16601661
Show on old repository browser