Skip to content

Commit

Permalink
fixup! Fix several conversion warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
stephenswat committed Jul 25, 2024
1 parent 5d3fb0a commit d873f16
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions lib/cuda/covfie/cuda/backend/primitive/cuda_texture.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -129,20 +129,20 @@ struct cuda_texture {
typename covariant_output_t::scalar_t;

if constexpr (covariant_output_t::dimensions == 1) {
stage[idx2] = static_cast < stage_scalar_t(v[0]);
stage[idx2] = static_cast<stage_scalar_t>(v[0]);
} else if constexpr (covariant_output_t::dimensions == 2) {
stage[idx2].x = static_cast < stage_scalar_t(v[0]);
stage[idx2].y = static_cast < stage_scalar_t(v[1]);
stage[idx2].x = static_cast<stage_scalar_t>(v[0]);
stage[idx2].y = static_cast<stage_scalar_t>(v[1]);
} else if constexpr (covariant_output_t::dimensions == 3) {
stage[idx2].x = static_cast < stage_scalar_t(v[0]);
stage[idx2].y = static_cast < stage_scalar_t(v[1]);
stage[idx2].z = static_cast < stage_scalar_t(v[2]);
stage[idx2].w = static_cast < stage_scalar_t(0.f);
stage[idx2].x = static_cast<stage_scalar_t>(v[0]);
stage[idx2].y = static_cast<stage_scalar_t>(v[1]);
stage[idx2].z = static_cast<stage_scalar_t>(v[2]);
stage[idx2].w = static_cast<stage_scalar_t>(0.f);
} else if constexpr (covariant_output_t::dimensions == 4) {
stage[idx2].x = static_cast < stage_scalar_t(v[0]);
stage[idx2].y = static_cast < stage_scalar_t(v[1]);
stage[idx2].z = static_cast < stage_scalar_t(v[2]);
stage[idx2].w = static_cast < stage_scalar_t(v[3]);
stage[idx2].x = static_cast<stage_scalar_t>(v[0]);
stage[idx2].y = static_cast<stage_scalar_t>(v[1]);
stage[idx2].z = static_cast<stage_scalar_t>(v[2]);
stage[idx2].w = static_cast<stage_scalar_t>(v[3]);
}
}),
std::tuple_cat(srcSize)
Expand Down

0 comments on commit d873f16

Please sign in to comment.