Put stream into the impl

This commit is contained in:
gingerBill
2023-06-08 17:00:38 +01:00
parent 145a7a24e8
commit 2a212a7556
4 changed files with 21 additions and 19 deletions
+2 -2
View File
@@ -4,8 +4,8 @@ import "core:io"
to_stream :: proc(f: ^File) -> (s: io.Stream) {
if f != nil {
assert(f.stream.procedure != nil)
s = f.stream
assert(f.impl.stream.procedure != nil)
s = f.impl.stream
}
return
}