From 132fa10cd43ed72909ec53a3e8e26fe6a112e1d7 Mon Sep 17 00:00:00 2001 From: Tomasz Sowa Date: Wed, 31 Jul 2019 07:14:21 +0000 Subject: [PATCH] fixed: cannot compile on MS Windows when compiling with GCC (Mingw) for 64 bit platform: incorrect size of ttmath::uint and ::sint were used they were 'long' but 'long' is a 32bit type on Windows git-svn-id: svn://ttmath.org/publicrep/ttmath/trunk@1197 e52654a7-88a9-db11-a3e9-0013d4bc506e --- doxygen.cfg | 2 +- ttmath/ttmathtypes.h | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/doxygen.cfg b/doxygen.cfg index 3f81c3a..2a8fa52 100644 --- a/doxygen.cfg +++ b/doxygen.cfg @@ -38,7 +38,7 @@ PROJECT_NAME = TTMath # could be handy for archiving the generated documentation or if some version # control system is used. -PROJECT_NUMBER = 0.9.4 +PROJECT_NUMBER = 0.9.4_prerelease_2019-07-31 # Using the PROJECT_BRIEF tag one can provide an optional one line description # for a project that appears at the top of each page and should give viewer a diff --git a/ttmath/ttmathtypes.h b/ttmath/ttmathtypes.h index 2b2092c..2253a6a 100644 --- a/ttmath/ttmathtypes.h +++ b/ttmath/ttmathtypes.h @@ -5,7 +5,7 @@ */ /* - * Copyright (c) 2006-2017, Tomasz Sowa + * Copyright (c) 2006-2019, Tomasz Sowa * All rights reserved. * * Redistribution and use in source and binary forms, with or without @@ -235,12 +235,12 @@ namespace ttmath /*! on 64bit platforms one word (uint, sint) will be equal 64bits */ - typedef unsigned long uint; + typedef uint64_t uint; /*! on 64bit platforms one word (uint, sint) will be equal 64bits */ - typedef signed long sint; + typedef int64_t sint; #endif /*!