Patchwork [wide-int] Add missing ()

login
register
mail settings
Submitter Mike Stump
Date Aug. 26, 2013, 5:59 p.m.
Message ID <0E9B0E34-B15F-4D3F-A9AD-089A1F8B8C97@comcast.net>
Download mbox | patch
Permalink /patch/269946/
State New
Headers show

Comments

Mike Stump - Aug. 26, 2013, 5:59 p.m.
[wide-int] Add missing ()

Patch

diff --git a/gcc/genmodes.c b/gcc/genmodes.c
index a27993a..946dcc9 100644
--- a/gcc/genmodes.c
+++ b/gcc/genmodes.c
@@ -874,14 +874,14 @@  emit_max_int (void)
        max = i->bytesize;
   if (max > mmax)
     mmax = max;
-  printf ("#define MAX_BITSIZE_MODE_ANY_INT %d*BITS_PER_UNIT\n", mmax);
+  printf ("#define MAX_BITSIZE_MODE_ANY_INT (%d*BITS_PER_UNIT)\n", mmax);
 
   mmax = 0;
   for (j = 0; j < MAX_MODE_CLASS; j++)
     for (i = modes[j]; i; i = i->next)
       if (mmax < i->bytesize)
        mmax = i->bytesize;
-  printf ("#define MAX_BITSIZE_MODE_ANY_MODE %d*BITS_PER_UNIT\n", mmax);
+  printf ("#define MAX_BITSIZE_MODE_ANY_MODE (%d*BITS_PER_UNIT)\n", mmax);
 }
 
 static void