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:
Tomasz Sowa 2014-04-04 23:36:48 +00:00
parent cb15ac0cd8
commit b862422bd9
1 changed files with 2 additions and 2 deletions

View File

@ -5,7 +5,7 @@
*/
/*
* Copyright (c) 2006-2010, Tomasz Sowa
* Copyright (c) 2006-2014, Tomasz Sowa
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@ -2604,7 +2604,7 @@ void SetBase(int b)
*/
void SetDegRadGrad(int angle)
{
if( angle >= 0 || angle <= 2 )
if( angle >= 0 && angle <= 2 )
deg_rad_grad = angle;
}