Use qulonglong instead of ulong.