Skip to content

Commit

Permalink
Fix macOS compilation errors
Browse files Browse the repository at this point in the history
  • Loading branch information
onurulgen committed Jun 22, 2023
1 parent 1f6452c commit d59deb9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion niftyreg_build_version.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
261
262
2 changes: 1 addition & 1 deletion reg-test/reg_test_voxelCentricToNodeCentric.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ class VoxelCentricToNodeCentricTest {
reg_mat44_mul(&transformation, nodeCoord, voxelCoord);
// Linear interpolation
DataType basisX[2], basisY[2], basisZ[2];
const int pre[3] = { reg_floor(voxelCoord[0]), reg_floor(voxelCoord[1]), reg_floor(voxelCoord[2]) };
const int pre[3] = { (int)reg_floor(voxelCoord[0]), (int)reg_floor(voxelCoord[1]), (int)reg_floor(voxelCoord[2]) };
basisX[1] = voxelCoord[0] - static_cast<DataType>(pre[0]);
basisX[0] = static_cast<DataType>(1) - basisX[1];
basisY[1] = voxelCoord[1] - static_cast<DataType>(pre[1]);
Expand Down

0 comments on commit d59deb9

Please sign in to comment.