From e826944242355086d30fb395d24f9e6f1353ffdc Mon Sep 17 00:00:00 2001
From: Rolf Eike Beer <eike@sf-mail.de>
Date: Tue, 21 May 2013 23:12:42 +0200
Subject: [PATCH] Tests: fix a warning with acc

This should fix this compiler warning observed with aCC:

Warning 863: ".../kwsys/testSystemInformation.cxx", line 93 # Result of operator << is widened from int to long.
        if (info.DoesCPUSupportFeature(1 << i))

Change-Id: Ie33521c354b11e3e852c801537c0c82f82c7041c
---
 testSystemInformation.cxx | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/testSystemInformation.cxx b/testSystemInformation.cxx
index 49a686c1..738043f7 100644
--- a/testSystemInformation.cxx
+++ b/testSystemInformation.cxx
@@ -88,9 +88,9 @@ int testSystemInformation(int, char*[])
   printMethod3(info, GetHostMemoryUsed(), "KiB");
   printMethod3(info, GetProcMemoryUsed(), "KiB");
 
-  for (int i = 0; i <= 31; i++)
+  for (long int i = 0; i <= 31; i++)
     {
-    if (info.DoesCPUSupportFeature(1 << i))
+    if (info.DoesCPUSupportFeature(static_cast<long int>(1) << i))
       {
       kwsys_ios::cout << "CPU feature " << i << "\n";
       }
-- 
GitLab