diff options
-rw-r--r-- | winsup/mingw/ChangeLog | 4 | ||||
-rw-r--r-- | winsup/mingw/mingwex/stdio/pformat.c | 3 |
2 files changed, 5 insertions, 2 deletions
diff --git a/winsup/mingw/ChangeLog b/winsup/mingw/ChangeLog index 1070d6983..c960e6762 100644 --- a/winsup/mingw/ChangeLog +++ b/winsup/mingw/ChangeLog @@ -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. diff --git a/winsup/mingw/mingwex/stdio/pformat.c b/winsup/mingw/mingwex/stdio/pformat.c index c7bd61668..4b6ebcb5a 100644 --- a/winsup/mingw/mingwex/stdio/pformat.c +++ b/winsup/mingw/mingwex/stdio/pformat.c @@ -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 |