Skip to content

Commit

Permalink
COMP: WindowedSincInterpolate OffsetTable return type [VS2017 fix]
Browse files Browse the repository at this point in the history
Fixes compile error on Visual Studio 2017. The full error message is:

M:\Dashboard\ITK\Modules\Core\ImageFunction\include\itkWindowedSincInterpolateImageFunction.h(346): error C2397: conversion from 'TReturnType' to 'const unsigned int' requires a narrowing conversion [M:\Dashboard\ITK-build\Modules\Core\Common\test\ITKCommon1TestDriver.vcxproj]

M:\Dashboard\ITK\Modules\Core\Common\test\itkPhasedArray3DSpecialCoordinatesImageTest.cxx(96): note: see reference to class template instantiation 'itk::WindowedSincInterpolateImageFunction<Image,3,itk::Function::HammingWindowFunction<3,double,double>,itk::ZeroFluxNeumannBoundaryCondition<TInputImage,TInputImage>,double>' being compiled
  • Loading branch information
dzenanz authored and N-Dekker committed Aug 30, 2022
1 parent d1b4c9b commit 05adf2d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -343,7 +343,7 @@ class ITK_TEMPLATE_EXPORT WindowedSincInterpolateImageFunction : public Interpol
TWindowFunction m_WindowFunction;

/** Size of the offset table */
static constexpr unsigned int m_OffsetTableSize{ Math::UnsignedPower(m_WindowSize, ImageDimension) };
static constexpr unsigned int m_OffsetTableSize = Math::UnsignedPower(m_WindowSize, ImageDimension);

/** The offset array, used to keep a list of relevant
* offsets in the neihborhoodIterator */
Expand Down

0 comments on commit 05adf2d

Please sign in to comment.