summaryrefslogtreecommitdiffstatshomepage
path: root/py/mpz.h
diff options
context:
space:
mode:
Diffstat (limited to 'py/mpz.h')
-rw-r--r--py/mpz.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/py/mpz.h b/py/mpz.h
index b2dd88acf9..63ac772ffd 100644
--- a/py/mpz.h
+++ b/py/mpz.h
@@ -73,7 +73,11 @@ typedef int8_t mpz_dbl_dig_signed_t;
#endif
#ifdef _WIN64
- #define MPZ_LONG_1 1i64
+ #ifdef __MINGW32__
+ #define MPZ_LONG_1 1LL
+ #else
+ #define MPZ_LONG_1 1i64
+ #endif
#else
#define MPZ_LONG_1 1L
#endif