Skip to content

Commit

Permalink
Resolve MSVC warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
amyspark authored and bernhardmgruber committed Sep 1, 2021
1 parent 41a65d1 commit 811e2ee
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
6 changes: 2 additions & 4 deletions Vc/avx/const.h
Original file line number Diff line number Diff line change
Expand Up @@ -119,8 +119,7 @@ namespace AVX
{
#ifdef Vc_IMPL_AVX2
#if defined Vc_ICC || defined Vc_MSVC
__m256i allone;
allone = _mm256_cmpeq_epi8(allone, allone);
__m256i allone = _mm256_set1_epi64x(~0);
#else
auto allone = ~__m256i();
#endif
Expand All @@ -134,8 +133,7 @@ namespace AVX
{
#ifdef Vc_IMPL_AVX2
#if defined Vc_ICC || defined Vc_MSVC
__m256i allone;
allone = _mm256_cmpeq_epi8(allone, allone);
__m256i allone = _mm256_set1_epi64x(~0);
#else
auto allone = ~__m256i();
#endif
Expand Down
2 changes: 1 addition & 1 deletion Vc/common/subscript.h
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ struct IndexVectorSizeMatches<MinSize,

template <std::size_t MinSize, typename T, std::ptrdiff_t N>
struct IndexVectorSizeMatches<MinSize, Vc::Common::span<T, N>, false>
: public std::integral_constant<bool, (N == -1 || MinSize <= N)> {
: public std::integral_constant<bool, (N == -1 || static_cast<std::ptrdiff_t>(MinSize) <= N)> {
};
// SubscriptOperation {{{1
template <
Expand Down

0 comments on commit 811e2ee

Please sign in to comment.