diff options
author | psychocrypt <psychocryptHPC@gmail.com> | 2018-04-14 22:09:39 +0200 |
---|---|---|
committer | Timothy Pearson <tpearson@raptorengineering.com> | 2018-06-04 21:07:11 +0000 |
commit | 6f0da67d4f01581b0ef8ec1bdd921a8a05d01c57 (patch) | |
tree | 4c47bdb46d4ca419ad3a7c1597791e40fb0f0ced /xmrstak/backend/cpu/crypto | |
parent | 5dbb3075f5f2a960ca4874886b07651791e1fddb (diff) | |
download | xmr-stak-6f0da67d4f01581b0ef8ec1bdd921a8a05d01c57.zip xmr-stak-6f0da67d4f01581b0ef8ec1bdd921a8a05d01c57.tar.gz |
fix a few conversion warnings
- fix conversion from large type tp small
Diffstat (limited to 'xmrstak/backend/cpu/crypto')
-rw-r--r-- | xmrstak/backend/cpu/crypto/cryptonight_aesni.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/xmrstak/backend/cpu/crypto/cryptonight_aesni.h b/xmrstak/backend/cpu/crypto/cryptonight_aesni.h index c7d28e9..7562de1 100644 --- a/xmrstak/backend/cpu/crypto/cryptonight_aesni.h +++ b/xmrstak/backend/cpu/crypto/cryptonight_aesni.h @@ -429,7 +429,7 @@ inline void cryptonight_monero_tweak(uint64_t* mem_out, __m128i tmp) tmp = _mm_castps_si128(_mm_movehl_ps(_mm_castsi128_ps(tmp), _mm_castsi128_ps(tmp))); uint64_t vh = _mm_cvtsi128_si64(tmp); - uint8_t x = vh >> 24; + uint8_t x = static_cast<uint8_t>(vh >> 24); static const uint16_t table = 0x7531; const uint8_t index = (((x >> 3) & 6) | (x & 1)) << 1; vh ^= ((table >> index) & 0x3) << 28; |