Update CGAL_Core/include/CGAL/CORE/extLong_impl.h

Co-authored-by: Laurent Rineau <Laurent.Rineau@cgal.org>
This commit is contained in:
Andreas Fabri 2024-03-07 11:26:14 +01:00 committed by GitHub
parent 4a30611cdb
commit 7a0f3da89b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 3 deletions

View File

@ -180,9 +180,7 @@ extLong extLong::operator- () const {
// you cannot interpret the returned value!
CGAL_INLINE_FUNCTION
int extLong::sign() const {
if (flag == 2){
CGAL_CORE_warning_msg(false, "NaN Sign can not be determined!");
}
CGAL_CORE_warning_msg(flag != 2, "NaN Sign can not be determined!");
return ((val == 0) ? 0 : ((val > 0) ? 1 : -1));
}