Fix over-shifting of int by explicitly making type ULL. Taken from upstream: https://github.com/calf-studio-gear/calf/commit/aaca6447de6ed07bb39f376095bb246cc8f3580a
Fix over-shifting of int by explicitly making type ULL. Taken from upstream: https://github.com/calf-studio-gear/calf/commit/aaca6447de6ed07bb39f376095bb246cc8f3580a