Fixes comparison of integers of different signs: 'unsigned long' and 'int64_t' error.