fixed: in Parser: in method SetDegRadGrad(int angle)
there is incorrectly use || operator (the && shoud be used) reported by heby on the ttmath forum git-svn-id: svn://ttmath.org/publicrep/ttmath/trunk@450 e52654a7-88a9-db11-a3e9-0013d4bc506e
This commit is contained in:
@@ -5,7 +5,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 2006-2010, Tomasz Sowa
|
* Copyright (c) 2006-2014, 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
|
||||||
@@ -2604,7 +2604,7 @@ void SetBase(int b)
|
|||||||
*/
|
*/
|
||||||
void SetDegRadGrad(int angle)
|
void SetDegRadGrad(int angle)
|
||||||
{
|
{
|
||||||
if( angle >= 0 || angle <= 2 )
|
if( angle >= 0 && angle <= 2 )
|
||||||
deg_rad_grad = angle;
|
deg_rad_grad = angle;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user