The product subtracts one value from another, such that the
result is less than the minimum allowable integer value, which produces a value
that is not equal to the correct result.
Extended Description
This can happen in signed and unsigned cases.
Alternate Terms
Integer underflow:
"Integer underflow" is sometimes used to identify signedness errors in
which an originally positive number becomes negative as a result of
subtraction. However, there are cases of bad subtraction in which
unsigned integers are involved, so it's not always a signedness
issue.
"Integer underflow" is occasionally used to describe array index
errors in which the index is negative.
Time of Introduction
Implementation
Applicable Platforms
Languages
C
C++
Java
.NET
Demonstrative Examples
Example 1
The following example has an integer underflow. The value of i is
already at the lowest negative value possible. The new value of i is
2147483647.