]> asedeno.scripts.mit.edu Git - PuTTY.git/commitdiff
Fix __uint128_t compile error on MinGW.
authorTim Kosse <tim.kosse@filezilla-project.org>
Tue, 11 Aug 2015 07:43:34 +0000 (09:43 +0200)
committerSimon Tatham <anakin@pobox.com>
Sat, 15 Aug 2015 12:54:41 +0000 (13:54 +0100)
MinGW has __uint128_t, but not __uint64_t.

sshbn.h

diff --git a/sshbn.h b/sshbn.h
index a043241eea67ac4453a6951a60c6156b6758f24e..9366f614ae4cde0cb198626180758db235e4cee1 100644 (file)
--- a/sshbn.h
+++ b/sshbn.h
@@ -26,7 +26,7 @@
  * using the same 'two machine registers' kind of code generation that
  * 32-bit targets use for 64-bit ints. If we have one of these, we can
  * use a 64-bit BignumInt and a 128-bit BignumDblInt. */
-typedef __uint64_t BignumInt;
+typedef unsigned long long BignumInt;
 typedef __uint128_t BignumDblInt;
 #define BIGNUM_INT_MASK  0xFFFFFFFFFFFFFFFFULL
 #define BIGNUM_TOP_BIT   0x8000000000000000ULL