Fix build warning

On x64 platform, size_t is not unsigned int but unsigned long.