fix some vs-specific problems

This commit is contained in:
Thomas Fussell 2017-04-11 18:10:24 -04:00
parent 4b174ab268
commit fd737912ce

View File

@ -985,7 +985,7 @@ rijndael_key rijndael_setup(const std::vector<std::uint8_t> &key_data)
LOAD32H(rk[5], key + 20);
for (;;) {
#ifdef _MSC_VER
temp = skey->rijndael.eK[rk - skey->rijndael.eK + 5];
temp = skey.eK[rk - skey.eK + 5];
#else
temp = rk[5];
#endif
@ -1007,7 +1007,7 @@ rijndael_key rijndael_setup(const std::vector<std::uint8_t> &key_data)
LOAD32H(rk[7], key + 28);
for (;;) {
#ifdef _MSC_VER
temp = skey->rijndael.eK[rk - skey->rijndael.eK + 7];
temp = skey.eK[rk - skey.eK + 7];
#else
temp = rk[7];
#endif