diff --git a/Wrapping/Generators/Python/itk/support/extras.py b/Wrapping/Generators/Python/itk/support/extras.py index 397bc60de74..76633c3a5d2 100644 --- a/Wrapping/Generators/Python/itk/support/extras.py +++ b/Wrapping/Generators/Python/itk/support/extras.py @@ -469,7 +469,10 @@ def vector_container_from_array(arr: ArrayLike, ttype=None) -> "itkt.VectorConta arr = np.asarray(arr) # Return VectorContainer with 64-bit index type - IndexType = itk.ULL + if os.name == 'nt': + IndexType = itk.ULL + else: + IndexType = itk.UL # Find container type if ttype is not None: