As suggested by David A: use ulong for consistency.