summaryrefslogtreecommitdiffstats
path: root/xmrstak/backend/cpu/crypto
diff options
context:
space:
mode:
authorpsychocrypt <psychocryptHPC@gmail.com>2018-04-14 22:09:39 +0200
committerTimothy Pearson <tpearson@raptorengineering.com>2018-06-04 21:07:11 +0000
commit6f0da67d4f01581b0ef8ec1bdd921a8a05d01c57 (patch)
tree4c47bdb46d4ca419ad3a7c1597791e40fb0f0ced /xmrstak/backend/cpu/crypto
parent5dbb3075f5f2a960ca4874886b07651791e1fddb (diff)
downloadxmr-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.h2
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;
OpenPOWER on IntegriCloud