+2008-06-27 Joseph Myers <joseph@codesourcery.com>
+
+ * dfp.c (decimal_convert): Call match_endianness before and after
+ conversion.
+
2008-06-27 Jonathan Larmour <jifl@eCosCentric.com>
* remote.c (remote_insert_breakpoint): Ensure that if Z0
int len_to)
{
decNumber number;
+ gdb_byte dec[16];
+
+ match_endianness (from, len_from, dec);
+
+ decimal_to_number (dec, len_from, &number);
+ decimal_from_number (&number, dec, len_to);
- decimal_to_number (from, len_from, &number);
- decimal_from_number (&number, to, len_to);
+ match_endianness (dec, len_to, to);
}