Also fix RelWithDebIfno build in Visual Studio

This commit is contained in:
SChernykh 2020-10-27 14:25:43 +01:00
parent 50bdaba526
commit 6b7b3511ce
2 changed files with 3 additions and 3 deletions

View file

@ -96,7 +96,7 @@ namespace randomx {
*/
# if defined(_MSC_VER) && defined(_DEBUG)
# if defined(_MSC_VER) && (defined(_DEBUG) || defined (RELWITHDEBINFO))
#define ADDR(x) ((((uint8_t*)&x)[0] == 0xE9) ? (((uint8_t*)&x) + *(const int32_t*)(((uint8_t*)&x) + 1) + 5) : ((uint8_t*)&x))
# else
#define ADDR(x) ((uint8_t*)&x)