-
-
Notifications
You must be signed in to change notification settings - Fork 5.7k
Closed
Description
To deal with integer arithmetic overflow we do the following:
- add checked integer arithmetic intrinsics named
checked_add,checked_mul, etc. - have a compiler switch that uses these everywhere.
- write a
@check_overflowmacro that transforms an expression to turn*intochecked_muland+intochecked_add, etc., but only in the expression — called functions are on their own.
Metadata
Metadata
Assignees
Labels
No labels