Skip to content

Commit 898fa33

Browse files
committed
Fix -Wswitch warnings in DecFloat
1 parent e10d0f8 commit 898fa33

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

src/common/DecFloat.cpp

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -490,9 +490,9 @@ bool Decimal64::isInf() const
490490
case DEC_CLASS_NEG_INF:
491491
case DEC_CLASS_POS_INF:
492492
return true;
493+
default:
494+
return false;
493495
}
494-
495-
return false;
496496
}
497497

498498
bool Decimal64::isNan() const
@@ -502,9 +502,9 @@ bool Decimal64::isNan() const
502502
case DEC_CLASS_SNAN:
503503
case DEC_CLASS_QNAN:
504504
return true;
505+
default:
506+
return false;
505507
}
506-
507-
return false;
508508
}
509509

510510
int Decimal64::sign() const
@@ -833,9 +833,9 @@ bool Decimal128::isInf() const
833833
case DEC_CLASS_NEG_INF:
834834
case DEC_CLASS_POS_INF:
835835
return true;
836+
default:
837+
return false;
836838
}
837-
838-
return false;
839839
}
840840

841841
bool Decimal128::isNan() const
@@ -845,9 +845,9 @@ bool Decimal128::isNan() const
845845
case DEC_CLASS_SNAN:
846846
case DEC_CLASS_QNAN:
847847
return true;
848+
default:
849+
return false;
848850
}
849-
850-
return false;
851851
}
852852

853853
int Decimal128::sign() const

0 commit comments

Comments
 (0)