Skip to content
Snippets Groups Projects
Commit e8269442 authored by Rolf Eike Beer's avatar Rolf Eike Beer
Browse files

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
parent f4928d44
No related branches found
No related tags found
No related merge requests found
......@@ -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";
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment