mirror of
https://github.com/aNNiMON/Own-Programming-Language-Tutorial.git
synced 2024-09-20 08:44:20 +03:00
Убраны лишние проверки в std::range
This commit is contained in:
parent
b0f19e208a
commit
13d320a301
@ -82,9 +82,9 @@ public final class std_range implements Function {
|
||||
|
||||
private boolean isIntegerRange() {
|
||||
if (to > 0) {
|
||||
return (to < Integer.MAX_VALUE) && (from > Integer.MIN_VALUE && to < Integer.MAX_VALUE);
|
||||
return (from > Integer.MIN_VALUE && to < Integer.MAX_VALUE);
|
||||
}
|
||||
return (to > Integer.MIN_VALUE) && (to > Integer.MIN_VALUE && from < Integer.MAX_VALUE);
|
||||
return (to > Integer.MIN_VALUE && from < Integer.MAX_VALUE);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
Loading…
Reference in New Issue
Block a user