|
|
|
|
|
by mafuy
1171 days ago
|
|
> you’d have to insert a check every time you add two signed integers together, This is exactly what is done in serious code. It is typically combined with contracts and static analysis (often human), e.g. "it is guaranteed that this input is in range 10-20, so adding it with this other 16 bit int can be assumed to be below sint32_max". |
|