Commit c1b853ca authored by Max Kellermann's avatar Max Kellermann

input/InputStream: define UNKNOWN_SIZE without undefined behavior

parent 4b78038b
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment