Skip to content

Commit

Permalink
BUG: Fix 32-bit truncation on VectorImage Accessor
Browse files Browse the repository at this point in the history
Initial bug reported in SimpleITK/SimpleITK#2220.

On 64-bit windows system, truncation to 32-bit (unsigned long) was
occouring when setting VectorImages with over 4GB buffers.
  • Loading branch information
blowekamp committed Dec 15, 2024
1 parent b5a3fb5 commit 3698a0a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ class ITK_TEMPLATE_EXPORT DefaultVectorPixelAccessor

/** Set output using the value in input */
inline void
Set(InternalType & output, const ExternalType & input, const unsigned long offset) const
Set(InternalType & output, const ExternalType & input, const SizeValueType offset) const
{
InternalType * truePixel = (&output) + offset * m_OffsetMultiplier;

Expand Down

0 comments on commit 3698a0a

Please sign in to comment.