FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

[SUGGESTION] Add runtime checks for C++ integer modulo by zero · Issue #1399 · hsutter/cppfront · GitHub

[SUGGESTION] Add runtime checks for C++ integer modulo by zero #1399

Description

This is #1184 but for modulo... sounds like it was forgotten that you can not mod by zero either.

There is also a case of division and modulo of std::numeric_limits<T>::min() / -1 which is UB aswell. Not sure if you want to check it too - it requires to check both operands.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions


      Back | FazBrowse Home | New Git URL