c/8733: Modulus operator incorrect

nathan@gcc.gnu.org nathan@gcc.gnu.org
Thu Nov 28 06:47:00 GMT 2002


Synopsis: Modulus operator incorrect

State-Changed-From-To: open->closed
State-Changed-By: nathan
State-Changed-When: Wed Nov 27 09:22:26 2002
State-Changed-Why:
    % is remainder, not modulus. It maintains the invariant that
    a / b * b + a % b == a
    for any a, b (b != 0)

http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=8733



More information about the Gcc-bugs mailing list