Forráskód Böngészése

LibJS: Align MathObject::atan closer to spec

This is not an observable difference. Nonetheless, it seems like a good
idea to be as close to the spec as possible, so let's do that.
Shannon Booth 2 éve
szülő
commit
06593a81da
1 módosított fájl, 1 hozzáadás és 1 törlés
  1. 1 1
      Userland/Libraries/LibJS/Runtime/MathObject.cpp

+ 1 - 1
Userland/Libraries/LibJS/Runtime/MathObject.cpp

@@ -303,7 +303,7 @@ JS_DEFINE_NATIVE_FUNCTION(MathObject::atan2)
     }
 
     // 10. If ny < -0𝔽, then
-    if (y.as_double() < 0) {
+    if (y.as_double() < -0) {
         // a. If nx is +∞𝔽, return -0𝔽.
         if (x.is_positive_infinity())
             return Value(-0.0);