Fixing AddressSanitizer issue where sizeof(size_t) > sizeof(int).