Fix unreachable code warning in constraint_offset() (#784)
This commit is contained in:
parent
0eba9b3708
commit
d3ef881f31
|
@ -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;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue
Block a user