add comments to possibly non-obvious code
This commit is contained in:
parent
a1215d9f0a
commit
59e2897cf6
@ -12,8 +12,8 @@ int range_arrayinbuf(const void* buf1,size_t len,
|
|||||||
alen=x;
|
alen=x;
|
||||||
} else {
|
} else {
|
||||||
unsigned long long t=(unsigned long long)elements*membersize;
|
unsigned long long t=(unsigned long long)elements*membersize;
|
||||||
alen=t;
|
alen=t; /* this strips the upper 32 bits of t */
|
||||||
if (alen!=t) return 0;
|
if (alen!=t) return 0; /* if that changes something, we overflowed */
|
||||||
}
|
}
|
||||||
return range_bufinbuf(buf1,len,arraystart,alen);
|
return range_bufinbuf(buf1,len,arraystart,alen);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user