We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents ca0a915 + 30f4f2c commit 5b194c8Copy full SHA for 5b194c8
pixie/io-blocking.pxi
@@ -18,7 +18,7 @@
18
(deftype FileStream [fp]
19
IInputStream
20
(read [this buffer len]
21
- (assert (<= (buffer-capacity buffer) len)
+ (assert (>= (buffer-capacity buffer) len)
22
"Not enough capacity in the buffer")
23
(let [read-count (fread buffer 1 len fp)]
24
(set-buffer-count! buffer read-count)
0 commit comments