Skip to content

Commit 91612c5

Browse files
df7cbmsdemlei
authored andcommitted
Fix smoc_degrade bitmask on 32bit
1 parent 229527c commit 91612c5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

process_moc.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -965,7 +965,7 @@ moc_round(void* moc_in_context, int order, Smoc* moc_a, int32 moc_a_end,
965965

966966
int shift = 2 * (HEALPIX_MAX_ORDER - order);
967967
hpint64 first = (x.first >> shift) << shift; // set low bits to zero
968-
hpint64 low_bits_one = (1L << shift) - 1;
968+
hpint64 low_bits_one = (1LL << shift) - 1;
969969
hpint64 second = ((x.second + low_bits_one) >> shift) << shift; // round low bits up
970970

971971
add_to_map(m.input_map, first, second);

0 commit comments

Comments
 (0)