Removed unnecessary qualifier

This commit is contained in:
Veloman Yunkan 2020-05-26 01:41:37 +04:00
parent 931e95f391
commit ff23b28e7c
1 changed files with 2 additions and 2 deletions

View File

@ -48,13 +48,13 @@ ByteRange ByteRange::parse(std::string rangeStr)
if (iss >> start) {
if ( start < 0 ) {
if ( iss.eof() )
byteRange = ByteRange(ByteRange::PARSED, start, end);
byteRange = ByteRange(PARSED, start, end);
} else {
char c;
if (iss >> c && c=='-') {
iss >> end; // if this fails, end is not modified, which is OK
if (iss.eof() && start <= end)
byteRange = ByteRange(ByteRange::PARSED, start, end);
byteRange = ByteRange(PARSED, start, end);
}
}
}