eliminate Visual C++ warning about pointless range check

This commit is contained in:
Enno Rehling 2015-05-27 22:44:12 +02:00
parent b8de887399
commit 618902f723
1 changed files with 0 additions and 4 deletions

View File

@ -12,10 +12,6 @@ int wrptr(char **ptr, size_t * size, size_t bytes)
if (bytes == 0) {
return 0;
}
if (bytes < 0) {
*size = 0;
return EINVAL;
}
if (bytes <= *size) {
*ptr += bytes;
*size -= bytes;