* remote.c (remote_insert_breakpoint): Ensure that if Z0
[deliverable/binutils-gdb.git] / gdb / dfp.c
index bf82114634b8d91f5f8a72fe3c6b92323a815fb5..fff82880742472c7ddcb511b906a66642617aebc 100644 (file)
--- a/gdb/dfp.c
+++ b/gdb/dfp.c
@@ -237,7 +237,8 @@ decimal_from_floating (struct value *from, gdb_byte *to, int len)
   char *buffer;
   int ret;
 
-  ret = asprintf (&buffer, "%.30Lg", value_as_double (from));
+  ret = asprintf (&buffer, "%.30" DOUBLEST_PRINT_FORMAT,
+                 value_as_double (from));
   if (ret < 0)
     error (_("Error in memory allocation for conversion to decimal float."));
 
@@ -248,7 +249,7 @@ decimal_from_floating (struct value *from, gdb_byte *to, int len)
 
 /* Converts a decimal float of LEN bytes to a double value.  */
 DOUBLEST
-decimal_to_double (const gdb_byte *from, int len)
+decimal_to_doublest (const gdb_byte *from, int len)
 {
   char buffer[MAX_DECIMAL_STRING];
 
This page took 0.03421 seconds and 4 git commands to generate.