32bit build doesn't auto convert int to size_t
specifically cast to size_t