Skip to content

Commit abd993d

Browse files
committed
This should compile on macos
1 parent 075ee13 commit abd993d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/core/common/ojph_arch.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -300,7 +300,7 @@ namespace ojph {
300300
size_t calc_aligned_size(size_t size) {
301301
size = size * sizeof(T) + N - 1;
302302
size &= ~((1ULL << (31 - count_leading_zeros(N))) - 1);
303-
size >>= (63 - count_leading_zeros(sizeof(T)));
303+
size >>= (63 - count_leading_zeros((ui64)sizeof(T)));
304304
return size;
305305
}
306306

0 commit comments

Comments
 (0)