Skip to content

Commit 9bb202c

Browse files
df7cbmsdemlei
authored andcommitted
Fix gin key extraction on 32bit
1 parent b3c6d55 commit 9bb202c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

moc.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1067,7 +1067,7 @@ smoc_gin_extract_internal(Smoc *moc_a, int32 *nkeys, int gin_order)
10671067

10681068
int shift = 2 * (HEALPIX_MAX_ORDER - gin_order); // degrade to MOC_GIN_ORDER
10691069
int32 first = (x->first >> shift); // set low bits to zero
1070-
hpint64 low_bits_one = (1L << shift) - 1;
1070+
hpint64 low_bits_one = (1LL << shift) - 1;
10711071
int32 second = ((x->second + low_bits_one) >> shift); // round low bits up
10721072
Assert(shift > 32); // internal GIN datatype isn't 64 bits
10731073

0 commit comments

Comments
 (0)