Skip to content

Commit

Permalink
fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
ncullen93 committed May 15, 2024
1 parent 6fe8ef7 commit 0f7fcbe
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/itkPyBuffer.hxx
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ PyBuffer<TImage>

for( unsigned int i = 0; i < dimension; ++i )
{
item = PySequence_FAST_GET_ITEM(shapeseq,i);
item = PySequence_Fast_GET_ITEM(shapeseq,i);
size[i] = (SizeValueType)PyLong_AsLong(item);
sizeFortran[dimension - 1 - i] = (SizeValueType)PyLong_AsLong(item);
numberOfPixels *= size[i];
Expand Down
4 changes: 2 additions & 2 deletions src/itkPyVnl.hxx
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ PyVnl<TElement>
shapeseq = PySequence_Fast(obj, "expected sequence");
dimension = PySequence_Size(obj);

item = PySequence_FAST_GET_ITEM(shapeseq,0);// Only one dimension
item = PySequence_Fast_GET_ITEM(shapeseq,0);// Only one dimension
numberOfElements = (size_t)PyLong_AsLong(item);

len = numberOfElements*elementSize;
Expand Down Expand Up @@ -187,7 +187,7 @@ PyVnl<TElement>

for( unsigned int i = 0; i < 2; ++i )
{
item = PySequence_FAST_GET_ITEM(shapeseq,i);
item = PySequence_Fast_GET_ITEM(shapeseq,i);
size[i] = (unsigned int)PyLong_AsLong(item);
numberOfElements *= size[i];
}
Expand Down

0 comments on commit 0f7fcbe

Please sign in to comment.