blob: babc92e218b421c35d3599548ed058ce9e778b9a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
Overflows in expressions
========================
uint i = ...
uint j = ...
# here, the operation is "byte - byte",
# which means that it will trap if:
# i>255,
# j>255, or
# i-j<0
# The former two cases might not be expected by {C, C++, Java, C#} programmers!
byte b = i - j
|