Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

integer arithmetic overflow #855

Closed
Closed
@StefanKarpinski

Description

@StefanKarpinski

To deal with integer arithmetic overflow we do the following:

  1. add checked integer arithmetic intrinsics namedchecked_add,checked_mul, etc.
  2. have a compiler switch that uses these everywhere.
  3. write a@check_overflow macro that transforms an expression to turn* intochecked_mul and+ intochecked_add, etc., but only in the expression — called functions are on their own.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp