• R/O
  • HTTP
  • SSH
  • HTTPS

mingw-org-wsl: Commit

The MinGW.OSDN Windows System Libraries. Formerly designated as "MinGW.org Windows System Libraries", this encapsulates the "mingwrt" C runtime library extensions, and the "w32api" 32-bit MS-Windows API libraries.

Please note that this project no longer owns the "MinGW.org" domain name; any software which may be distributed from that domain is NOT supported by this project.


Commit MetaInfo

Revision5fe5d0aa874341cc015b0b71f5b5a6d9f3de8e7d (tree)
Time2016-11-02 04:45:15
AuthorKeith Marshall <keithmarshall@user...>
CommiterKeith Marshall

Log Message

Fix another printf() hex-float formatting bug.

Change Summary

Incremental Difference

--- 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