Explicitly include <array> for std::array<>.
[deliverable/binutils-gdb.git] / gdb / doublest.c
index b1b0921eeb5222f534f9b5f8e0697cbf3282dda9..e464177bcc77767b06935cbfc7adc32966f90488 100644 (file)
@@ -1,6 +1,6 @@
 /* Floating point routines for GDB, the GNU debugger.
 
-   Copyright (C) 1986-2016 Free Software Foundation, Inc.
+   Copyright (C) 1986-2017 Free Software Foundation, Inc.
 
    This file is part of GDB.
 
@@ -360,8 +360,7 @@ convert_doublest_to_floatformat (const struct floatformat *fmt,
     uto = newto;
 
   memcpy (&dfrom, from, sizeof (dfrom));
-  memset (uto, 0, (fmt->totalsize + FLOATFORMAT_CHAR_BIT - 1) 
-                    / FLOATFORMAT_CHAR_BIT);
+  memset (uto, 0, floatformat_totalsize_bytes (fmt));
 
   if (fmt->split_half)
     {
This page took 0.023262 seconds and 4 git commands to generate.