-
Kenneth Moreland authored
When compiling with 32-bit Ids for a 64 bit machine (which is not uncommon), it is possible that the distance between two iterators is larger than the maximum value that can be stored in vtkm::Id. If two such iterators were passed to ArrayPortalFromIterators, that would cause problems. This change checks for that condition and throws an out of memory exception if it occurs. That would be a pretty darn big array and is more likely to be the cause of an error somewhere else in the code, but either way the check and error is good. This change also fixes a warning we have been getting with MSVC.
e612e423