in ASin() and Gamma() there is used SetZeroNan() to suppress a warning about an uninitialized variable (for gcc)
git-svn-id: svn://ttmath.org/publicrep/ttmath/trunk@1229 e52654a7-88a9-db11-a3e9-0013d4bc506e
This commit is contained in:
parent
3b113374b7
commit
aad580f51e
|
@ -1,6 +1,11 @@
|
||||||
#CC = g++
|
#CC = g++6
|
||||||
|
#CFLAGS = -Wall -pedantic -O3 -s -I.. -Wl,-rpath=/usr/local/lib/gcc6
|
||||||
|
#CFLAGS = -Wall -pedantic -O3 -DTTMATH_NOASM -s -I.. -Wl,-rpath=/usr/local/lib/gcc6
|
||||||
|
|
||||||
CC = clang++
|
CC = clang++
|
||||||
CFLAGS = -Wall -pedantic -O2 -I..
|
CFLAGS = -Wall -pedantic -O3 -s -I..
|
||||||
|
#CFLAGS = -Wall -pedantic -O3 -DTTMATH_NOASM -s -I..
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
.SUFFIXES: .cpp .o
|
.SUFFIXES: .cpp .o
|
||||||
|
|
|
@ -873,7 +873,8 @@ namespace ttmath
|
||||||
if( err )
|
if( err )
|
||||||
*err = err_improper_argument;
|
*err = err_improper_argument;
|
||||||
|
|
||||||
return result; // NaN is set by default
|
result.SetZeroNan();
|
||||||
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
if( x.IsSign() )
|
if( x.IsSign() )
|
||||||
|
@ -2710,7 +2711,7 @@ namespace ttmath
|
||||||
if( n.IsZero() )
|
if( n.IsZero() )
|
||||||
{
|
{
|
||||||
err_tmp = err_improper_argument;
|
err_tmp = err_improper_argument;
|
||||||
result.SetNan();
|
result.SetZeroNan();
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue