diff --git a/pom.xml b/pom.xml
index 8c710382..de7ce1cf 100644
--- a/pom.xml
+++ b/pom.xml
@@ -7,7 +7,7 @@
gov.nih.ncats
molvec
jar
- 0.9.9-SNAPSHOT
+ 0.9.10-SNAPSHOT
MolVec
diff --git a/src/main/java/gov/nih/ncats/molvec/internal/image/Bitmap.java b/src/main/java/gov/nih/ncats/molvec/internal/image/Bitmap.java
index 60b81c8b..fca5fd1b 100644
--- a/src/main/java/gov/nih/ncats/molvec/internal/image/Bitmap.java
+++ b/src/main/java/gov/nih/ncats/molvec/internal/image/Bitmap.java
@@ -2064,10 +2064,10 @@ void union (short[] eqvtab, short cls1, short cls2) {
if (i != j) {
if (eqvtab[j] < eqvtab[i]) {
- eqvtab[j] += eqvtab[i] - 1;
+ eqvtab[j] += eqvtab[i] - (short)1;
eqvtab[i] = j;
} else {
- eqvtab[i] += eqvtab[j] - 1;
+ eqvtab[i] += eqvtab[j] - (short)1;
eqvtab[j] = i;
}
}
diff --git a/src/test/java/gov/nih/ncats/molvec/internal/algo/MoleculeTest.java b/src/test/java/gov/nih/ncats/molvec/internal/algo/MoleculeTest.java
index 6456e029..75bfd179 100644
--- a/src/test/java/gov/nih/ncats/molvec/internal/algo/MoleculeTest.java
+++ b/src/test/java/gov/nih/ncats/molvec/internal/algo/MoleculeTest.java
@@ -5882,7 +5882,7 @@ public static List