From 005c8886d7fab4eacc2a54f80b777874934c6cf4 Mon Sep 17 00:00:00 2001 From: Thorsten Glaser Date: Mon, 9 Jan 2017 19:57:40 +0000 Subject: [PATCH] Do not detect x32 as 64-bit platform. Fixes test failures due to ISO C Undefined Behaviour in MP_MASK macro. --- lib/hcrypto/libtommath/tommath.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/hcrypto/libtommath/tommath.h b/lib/hcrypto/libtommath/tommath.h index af892c36c..e5d8d5367 100644 --- a/lib/hcrypto/libtommath/tommath.h +++ b/lib/hcrypto/libtommath/tommath.h @@ -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