Fix unreachable code warning in constraint_offset() (#784)

This commit is contained in:
shel 2019-12-20 14:17:08 +04:00 committed by Vincent Herbet
parent 0eba9b3708
commit d3ef881f31

View File

@ -761,12 +761,8 @@ stock constraint_offset(low, high, seed, offset)
{
return low + (offset % numElements);
}
else
{
return high - (abs(offset) % numElements) + 1;
}
return 0; // Makes the compiler happy -_-
return high - (abs(offset) % numElements) + 1;
}
/**