A few expressions weren't supported.

This commit is contained in:
Speiger 2022-12-13 13:31:42 +01:00
parent a63defacbb
commit b0792532b1
2 changed files with 4 additions and 2 deletions

View File

@ -5,7 +5,7 @@ repositories {
}
archivesBaseName = 'Simple Code Generator'
version = '1.2.0'
version = '1.2.1'
apply plugin: 'maven'
tasks.withType(JavaCompile) {

View File

@ -97,11 +97,13 @@ public class NumberCondition implements ICondition
case EQUALS: return key == value;
case NOT_EQUALS: return key != value;
case GREATER: return key > value;
case GREATER_EQUALS: return key >= value;
case SMALLER: return key < value;
case SMALLER_EQUALS: return key <= value;
case BIT_EQUALS_ALL: return (key & value) == value;
case BIT_EQUALS_ANY: return (key & value) != 0;
case BIT_EQUALS_NOT: return (key & value) == 0;
default: return false;
default: return true;
}
}