Skip to content

Commit ef29dda

Browse files
committed
Update __float128.cpp
1 parent fa10260 commit ef29dda

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

QPFloat/__float128.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -742,7 +742,7 @@ __float128 __float128::Sin( __float128 &v )
742742
}
743743
Mul(temp, QuadTwoPi, temp);
744744
Sub(temp, QuadHalfPi, temp);
745-
if (temp.IsZero()) return v;
745+
if (temp.IsZero()) return QuadZero;
746746

747747
__float128 currentX = temp;
748748
__float128 negVSquared;
@@ -1188,4 +1188,4 @@ void __float128::Floor( __float128 &v, __float128 &result )
11881188

11891189
#ifdef _MANAGED
11901190
#pragma managed
1191-
#endif
1191+
#endif

0 commit comments

Comments
 (0)