2009-07-27 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>

* mingwex/stdio/pformat.c: Implement better fix for type punned warning.
This commit is contained in:
Chris Sutcliffe 2009-07-28 01:28:22 +00:00
parent b70cd7bca1
commit d826cbf322
2 changed files with 5 additions and 2 deletions

View File

@ -1,3 +1,7 @@
2009-07-27 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
* mingwex/stdio/pformat.c: Implement better fix for type punned warning.
2009-07-27 Keith Marshall <keithmarshall@users.sourceforge.net>
Convert to monolithic configuration procedure.

View File

@ -1883,8 +1883,7 @@ int __pformat( int flags, void *dest, int max, const char *fmt, va_list argv )
* `wchar_t' data, (which is promoted to an `int' argument)...
*/
argval.__pformat_ullong_t = (wchar_t)(va_arg( argv, int ));
void *tmp = &argval;
__pformat_wputchars( (wchar_t *)tmp, 1, &stream );
__pformat_wputchars( (wchar_t *)argval.__pformat_ptr_t, 1, &stream );
}
else