added: '#ifndef __GNUC__' to Big::Pow() where is using '#pragma warning'
in order to not confuse GCC git-svn-id: svn://ttmath.org/publicrep/ttmath/trunk@109 e52654a7-88a9-db11-a3e9-0013d4bc506e
This commit is contained in:
@@ -1642,7 +1642,9 @@ public:
|
||||
// MS Visual Express 2005 reports a warning (in the lines with 'uint man_diff = ...'):
|
||||
// warning C4307: '*' : integral constant overflow
|
||||
// but we're using 'if( man > another_man )' and 'if( man < another_man )' and there'll be no such a situation here
|
||||
#ifndef __GNUC__
|
||||
#pragma warning( disable: 4307 )
|
||||
#endif
|
||||
|
||||
if( man > another_man )
|
||||
{
|
||||
@@ -1655,9 +1657,10 @@ public:
|
||||
uint man_diff = (another_man - man) * TTMATH_BITS_PER_UINT;
|
||||
c += exponent.AddInt(man_diff, 0);
|
||||
}
|
||||
|
||||
|
||||
#ifndef __GNUC__
|
||||
#pragma warning( default: 4307 )
|
||||
|
||||
#endif
|
||||
|
||||
// mantissa doesn't have to be standardized (either the highest bit is set or all bits are equal zero)
|
||||
CorrectZero();
|
||||
|
Reference in New Issue
Block a user