summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
f801323)
Identified by Coverity. Comparing unsigned types < 0 is never true.
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
- if (count < 0 || count >= (1 << 16)) {
+ if (count >= (1 << 16)) {
- if (count < 0 || count >= (1 << 16)) {
+ if (count >= (1 << 16)) {
{
int ret;
size_t length = strlen(str);
{
int ret;
size_t length = strlen(str);
- if (length < 0 || length >= (1 << 16)) {
+
+ if (length >= (1 << 16)) {