From b862422bd9268be36ebf9b28925fbe2138552afe Mon Sep 17 00:00:00 2001 From: Tomasz Sowa Date: Fri, 4 Apr 2014 23:36:48 +0000 Subject: [PATCH] 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 --- ttmath/ttmathparser.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ttmath/ttmathparser.h b/ttmath/ttmathparser.h index ce07120..42cd940 100644 --- a/ttmath/ttmathparser.h +++ b/ttmath/ttmathparser.h @@ -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; }