Skip to content

Commit

Permalink
Do not detect x32 as 64-bit platform.
Browse files Browse the repository at this point in the history
Fixes test failures due to ISO C Undefined Behaviour in MP_MASK macro.
  • Loading branch information
mirabilos authored and nicowilliams committed Mar 17, 2017
1 parent f545770 commit 141be7e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/hcrypto/libtommath/tommath.h
Expand Up @@ -46,7 +46,7 @@ extern "C" {


/* detect 64-bit mode if possible */
#if defined(__x86_64__)
#if defined(__x86_64__) && !defined(__ILP32__)
#if !(defined(MP_64BIT) && defined(MP_16BIT) && defined(MP_8BIT))
#define MP_64BIT
#endif
Expand Down

0 comments on commit 141be7e

Please sign in to comment.