@@ -79,11 +79,11 @@ * * @param stream The underlying stream to which compressed data is written or * from which compressed data is read * @return A new, autoreleased OFInflateStream */ -+ (instancetype)streamWithStream: (OFStream *)stream; ++ (instancetype)streamWithStream: (OF_KINDOF(OFStream *))stream; - (instancetype)init OF_UNAVAILABLE; /*! * @brief Initializes an already allocated OFInflateStream with the specified @@ -91,9 +91,10 @@ * * @param stream The underlying stream to which compressed data is written or * from which compressed data is read * @return A initialized OFInflateStream */ -- (instancetype)initWithStream: (OFStream *)stream OF_DESIGNATED_INITIALIZER; +- (instancetype)initWithStream: (OF_KINDOF(OFStream *))stream + OF_DESIGNATED_INITIALIZER; @end OF_ASSUME_NONNULL_END