Fix unreachable code warning in constraint_offset() (#784)
This commit is contained in:
1 parent
0eba9b3708
commit
d3ef881f31
1 file changed
+2
-6
@@ -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;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in new issue
Block a user