Skip to content

Commit

Permalink
Remove unneeded casts
Browse files Browse the repository at this point in the history
  • Loading branch information
mhoemmen committed Aug 22, 2022
1 parent 1c939a6 commit 6dbb53f
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions examples/aligned_accessor/aligned_accessor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -63,9 +63,8 @@
namespace {

using test_value_type = float;
constexpr int min_overalignment_factor = 8;
constexpr int min_byte_alignment =
static_cast<int>(min_overalignment_factor * sizeof(float));
constexpr std::size_t min_overalignment_factor = 8;
constexpr std::size_t min_byte_alignment = min_overalignment_factor * sizeof(float);

// Use int, not size_t, as the index_type.
// Some compilers have trouble optimizing loops with unsigned or 64-bit index types.
Expand Down

0 comments on commit 6dbb53f

Please sign in to comment.