#21 Modulus operator broken for negatives

v2.0x
closed
Internals (76)
5
2002-10-14
2002-10-11
Anonymous
No

The modulus operator in Avisynth 2.0.6 doesn't work
quite right for negative values - the result is still
negative. For example, (-13 % 5) == -3

Discussion

  • Klaus Post

    Klaus Post - 2002-10-14
    • assigned_to: nobody --> sh0dan
     
  • Klaus Post

    Klaus Post - 2002-10-14

    Logged In: YES
    user_id=578300

    Fixed, and put in CVS.
    Also added abs(int) and fabs(float) while at it.

     
  • Klaus Post

    Klaus Post - 2002-10-14
    • status: open --> pending
     
  • Klaus Post

    Klaus Post - 2002-10-14
    • status: pending --> closed
     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks