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
This commit is contained in:
Tomasz Sowa 2019-07-31 07:14:21 +00:00
parent dcdb1db9ec
commit 132fa10cd4
2 changed files with 4 additions and 4 deletions

View File

@ -38,7 +38,7 @@ PROJECT_NAME = TTMath
# could be handy for archiving the generated documentation or if some version # could be handy for archiving the generated documentation or if some version
# control system is used. # 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 # 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 # for a project that appears at the top of each page and should give viewer a

View File

@ -5,7 +5,7 @@
*/ */
/* /*
* Copyright (c) 2006-2017, Tomasz Sowa * Copyright (c) 2006-2019, Tomasz Sowa
* All rights reserved. * All rights reserved.
* *
* Redistribution and use in source and binary forms, with or without * 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 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 on 64bit platforms one word (uint, sint) will be equal 64bits
*/ */
typedef signed long sint; typedef int64_t sint;
#endif #endif
/*! /*!