diff mbox

[wide-int] : Bump up buffer for printing

Message ID 98FCC30C-ACC4-468C-9D93-4F663481527A@comcast.net
State New
Headers show

Commit Message

Mike Stump Dec. 16, 2013, 11:22 p.m. UTC
The buffer was too small… The print routines when printing in hex, use the precision to form the output, and negative numbers have a few more ffffs in front than we might otherwise expect for the largest in on the machine.

Ok?
diff mbox

Patch

diff --git a/gcc/wide-int-print.h b/gcc/wide-int-print.h
index be93cd1..af07517 100644
--- a/gcc/wide-int-print.h
+++ b/gcc/wide-int-print.h
@@ -23,7 +23,8 @@  along with GCC; see the file COPYING3.  If not see
 #include <stdio.h>
 #include "wide-int.h"

-#define WIDE_INT_PRINT_BUFFER_SIZE (MAX_BITSIZE_MODE_ANY_INT / 4 + 4)
+#define WIDE_INT_PRINT_BUFFER_SIZE (WIDE_INT_MAX_PRECISION / 4 + 4)
+
 /* Printing functions.  */

 extern void print_dec (const wide_int &wi, char *buf, signop sgn);