@@ -294,11 +294,11 @@ @throw [OFNotOpenException exceptionWithObject: self]; if (_atEndOfStream) return 0; - if (length > UINT64_MAX) + if (sizeof(length) >= sizeof(uint64_t) && length > UINT64_MAX) @throw [OFOutOfRangeException exception]; if ((uint64_t)length > _toRead) length = (size_t)_toRead;