...
Code Block | ||
---|---|---|
| ||
signed int si = INT_MIN; unsigned int ui; if ( (si < 0) || (si > UINT_MAX) ) { /* handle error condition */ } else { ui = (unsigned int)si; /* cast eliminates warning */ } |
...
Tool | Version | Checker | Description | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
|
| ||||||||||||
|
|
|
| ||||||||||||
|
|
|
| ||||||||||||
|
|
|
| ||||||||||||
|
|
|
| ||||||||||||
|
|
|
|
...
...
Code Block | ||
---|---|---|
| ||
signed int si = INT_MIN; unsigned int ui; if ( (si < 0) || (si > UINT_MAX) ) { /* handle error condition */ } else { ui = (unsigned int)si; /* cast eliminates warning */ } |
...
Tool | Version | Checker | Description | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
|
| ||||||||||||
|
|
|
| ||||||||||||
|
|
|
| ||||||||||||
|
|
|
| ||||||||||||
|
|
|
| ||||||||||||
|
|
|
|
...