Commit 887b0366 authored by Rayan Chikhi's avatar Rayan Chikhi
Browse files

fixes found by Karel Brinda

parent cd73a325
......@@ -1177,10 +1177,10 @@ struct GraphData
{
unsigned long hashIndex = ((_nodestate))->getCode(item);
unsigned char value = ((_nodestate))->at(hashIndex / 2);
if (hashIndex % 2 == 1)
if ((hashIndex % 2) == 1)
value >>= 4;
value &= 0xF;
if ((value >> 1) & 1 == 1)
if (((value >> 1) & 1) == 1)
return false;
}
......
......@@ -839,7 +839,7 @@ template<int precision> inline void justSweepForAA(const LargeInt<precision>& x,
int j = 0;
while (j < it)
{
if (val & 15 == 0) // val starts with AA
if ((val & 15) == 0) // val starts with AA
dummy++;
val >>= 2;
......
......@@ -297,7 +297,7 @@ inline void justSweepForAA(const LargeInt<1>& x, const unsigned int _nbMinimizer
int j = 0;
while (j < it)
{
if (val & 15 == 0) // val starts with AA
if ((val & 15) == 0) // val starts with AA
dummy++;
val >>= 2;
......
......@@ -269,7 +269,7 @@ inline void justSweepForAA(const LargeInt<2>& x, const unsigned int _nbMinimizer
int j = 0;
while (j < it)
{
if (val & 15 == 0) // val starts with AA
if ((val & 15) == 0) // val starts with AA
dummy++;
val >>= 2;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment