summaryrefslogtreecommitdiff
path: root/src/main/java/com/amazon/carbonado/raw
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/com/amazon/carbonado/raw')
-rw-r--r--src/main/java/com/amazon/carbonado/raw/RawStorableGenerator.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/main/java/com/amazon/carbonado/raw/RawStorableGenerator.java b/src/main/java/com/amazon/carbonado/raw/RawStorableGenerator.java
index e48aef8..880bb7c 100644
--- a/src/main/java/com/amazon/carbonado/raw/RawStorableGenerator.java
+++ b/src/main/java/com/amazon/carbonado/raw/RawStorableGenerator.java
@@ -258,7 +258,8 @@ public class RawStorableGenerator {
for (StorableProperty property : properties) {
orMask |= StorableGenerator.PROPERTY_STATE_CLEAN << ((ordinal & 0xf) * 2);
- andMask &= StorableGenerator.PROPERTY_STATE_MASK << ((ordinal & 0xf) * 2);
+ andMask &=
+ ~(StorableGenerator.PROPERTY_STATE_MASK << ((ordinal & 0xf) * 2));
ordinal++;
if ((ordinal & 0xf) == 0 || ordinal >= count) {