Skip to content

Commit 30dca29

Browse files
committed
fix: add missing return
1 parent fd3e5ec commit 30dca29

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libc/src/__support/FPUtil/generic/add_sub.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ add_or_sub(InType x, InType y) {
8989

9090
if (y_bits.is_inf()) {
9191
if constexpr (IsSub)
92-
OutFPBits::inf(y_bits.sign().negate()).get_val();
92+
return OutFPBits::inf(y_bits.sign().negate()).get_val();
9393
else
9494
return OutFPBits::inf(y_bits.sign()).get_val();
9595
}

0 commit comments

Comments
 (0)