Skip to content

Commit 2e6f0a4

Browse files
committed
explicit conversion to long before comparison
1 parent 8f972c2 commit 2e6f0a4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/hypercube.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ class CubeSignature {
113113
if (i>=lsize(v)) continue; // sanity check
114114

115115
// increment current index, set all the ones after it to zero
116-
if (v[i] < getDim(i)-1) {
116+
if (long(v[i]) < getDim(i)-1) {
117117
v[i]++;
118118
for (long j=i+1; j<lsize(v); j++) v[j] = 0;
119119
return true; // succeeded in incrementing the vector

0 commit comments

Comments
 (0)