Fixed Mac OS X build error in casting a Whole to a size_t