Skip to content

Testing and documentation for arithmetic overflow #8

@saxbophone

Description

@saxbophone

Arithmetic overflow can occur in the following scenarios:

  • Addition
  • Subtraction
  • Multiplication
  • Division
  • Increment
  • Decrement
  • Creating PSXFixed from a double or from_integer() where the input is outside the bounds of the fixed-point type

Currently, the behaviour of overflowing operations is unspecified. It should be specified, tested for, and documented, regardless of whether we decide to catch it or not.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions