diff options
author | zadeck <zadeck@138bc75d-0d04-0410-961f-82ee72b054a4> | 2013-08-24 19:53:22 +0000 |
---|---|---|
committer | zadeck <zadeck@138bc75d-0d04-0410-961f-82ee72b054a4> | 2013-08-24 19:53:22 +0000 |
commit | 4d69eb474291f41d67eeaa0193f3a7ccb2188655 (patch) | |
tree | 49df5ab04b5136a6f9428facfc03152d707894fd /gcc/wide-int-print.cc | |
parent | 5049003783af68047ad621e476c0ddb72fa12155 (diff) | |
download | gcc-4d69eb474291f41d67eeaa0193f3a7ccb2188655.tar.gz |
made sign parameter optional to wide_int::neg_p
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/wide-int@201968 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/wide-int-print.cc')
-rw-r--r-- | gcc/wide-int-print.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gcc/wide-int-print.cc b/gcc/wide-int-print.cc index e1968107b49..29eb9299f79 100644 --- a/gcc/wide-int-print.cc +++ b/gcc/wide-int-print.cc @@ -61,7 +61,7 @@ print_decs (const wide_int &wi, char *buf) if ((wi.get_precision () <= HOST_BITS_PER_WIDE_INT) || (wi.get_len () == 1)) { - if (wi.neg_p (SIGNED)) + if (wi.neg_p ()) sprintf (buf, "-" HOST_WIDE_INT_PRINT_UNSIGNED, -wi.to_shwi ()); else sprintf (buf, HOST_WIDE_INT_PRINT_DEC, wi.to_shwi ()); @@ -88,7 +88,7 @@ void print_decu (const wide_int &wi, char *buf) { if ((wi.get_precision () <= HOST_BITS_PER_WIDE_INT) - || (wi.get_len () == 1 && !wi.neg_p (SIGNED))) + || (wi.get_len () == 1 && !wi.neg_p ())) sprintf (buf, HOST_WIDE_INT_PRINT_UNSIGNED, wi.to_uhwi ()); else print_hex (wi, buf); @@ -114,7 +114,7 @@ print_hex (const wide_int &wi, char *buf) buf += sprintf (buf, "0x0"); else { - if (wi.neg_p (SIGNED)) + if (wi.neg_p ()) { int j; /* If the number is negative, we may need to pad value with |