input/InputStream: define UNKNOWN_SIZE without undefined behavior
This commit is contained in:
parent
4b78038b41
commit
c1b853ca7c
@ -76,7 +76,7 @@ protected:
|
||||
*/
|
||||
bool seekable = false;
|
||||
|
||||
static constexpr offset_type UNKNOWN_SIZE = -1;
|
||||
static constexpr offset_type UNKNOWN_SIZE = ~offset_type(0);
|
||||
|
||||
/**
|
||||
* the size of the resource, or #UNKNOWN_SIZE if unknown
|
||||
|
Loading…
Reference in New Issue
Block a user