changeset 28931:8912d496b5e2

Add some parentheses to silence the warnings: cpuinfo.c:293: warning: suggest parentheses around && within || cpuinfo.c:297: warning: suggest parentheses around && within ||
author diego
date Sun, 15 Mar 2009 20:34:02 +0000
parents abdc27586f35
children 41aa8200c7c9
files cpuinfo.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/cpuinfo.c	Sun Mar 15 20:02:45 2009 +0000
+++ b/cpuinfo.c	Sun Mar 15 20:34:02 2009 +0000
@@ -290,11 +290,11 @@
        have to check the family, model and stepping instead. */
     if (strstr(idstr, "AMD") &&
         family == 5 &&
-        (model >= 9 || model == 8 && stepping >= 8))
+        (model >= 9 || (model == 8 && stepping >= 8)))
       printf(" %s", "k6_mtrr");
     /* similar for cyrix_arr. */
     if (strstr(idstr, "Cyrix") &&
-        (family == 5 && model < 4 || family == 6))
+        (family == 5 && (model < 4 || family == 6)))
       printf(" %s", "cyrix_arr");
     /* as well as centaur_mcr. */
     if (strstr(idstr, "Centaur") &&