Fix warning: Implicit conversion loses integer precision: 'unsigned long' to 'CC_LONG'