DFP build failure
Thiago Jung Bauermann
bauerman@br.ibm.com
Wed Jan 9 18:31:00 GMT 2008
On Wed, 2008-01-09 at 11:49 -0500, Daniel Jacobowitz wrote:
> void
> decimal_from_floating (struct value *from, gdb_byte *to, int len)
> {
> char *buffer;
> int ret;
>
> ret = asprintf (&buffer, "%.30Lg", value_as_double (from));
> ...
>
> value_as_double returns a DOUBLEST, not necessarily a long double as
> specified by %Lg. And the system printf does not necessarily support
> long double. Is there some other way to do this?
>
> (It failed to build on mingw32.)
Mmmm.... sorry about that. What do you think of the attached fix
(dangerous question to ask!)?
DOUBLEST_PRINT_FORMAT is currently not used, so not a big deal to change
it a bit.
--
[]'s
Thiago Jung Bauermann
Software Engineer
IBM Linux Technology Center
-------------- next part --------------
A non-text attachment was scrubbed...
Name: dfp-mingw-build-fix.diff
Type: text/x-patch
Size: 1091 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/gdb-patches/attachments/20080109/0813ac2a/attachment.bin>
More information about the Gdb-patches
mailing list