Commit c65e62c3 authored by Jamie Mcclelland's avatar Jamie Mcclelland

fixed build error when using vs 2013

added return value for reg_spline_GetJacobianDetFromVelocityGrid
parent 169db414
......@@ -3002,6 +3002,8 @@ int reg_spline_GetJacobianDetFromVelocityGrid(nifti_image* jacobianDetImage,
flowFieldImage);
nifti_image_free(flowFieldImage);
return 0;
}
/* *************************************************************** */
/* *************************************************************** */
......@@ -79,10 +79,12 @@ template<class PrecisionType> inline int round(PrecisionType x)
{
return int(x > 0.0 ? (x + 0.5) : (x - 0.5));
}
#if _MSC_VER < 1800 //test if visual studio version older than 2013
template<typename T>inline bool isinf(T value)
{
return std::numeric_limits<T>::has_infinity && value == std::numeric_limits<T>::infinity();
}
#endif
inline int fabs(int _x)
{
return (int)fabs((float)(_x));
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment