Fixed a bug related to x64 compilation

size_t alias represents a ulong on a 64-bit systems so it’s not capable
with the int type