Changing to size_t to ensure win32 compile