Commit f526b955 authored by Richard M. Stallman's avatar Richard M. Stallman
Browse files

(Frem): Fix result sign properly.

parent 348d4dd6
......@@ -1762,7 +1762,8 @@ Both must be numbers or markers.")
#else
f1 = drem (f1, f2);
#endif
if (f1 < 0)
/* If the "remainder" comes out with the wrong sign, fix it. */
if ((f1 < 0) != (f2 < 0))
f1 += f2;
return (make_float (f1));
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment