aboutsummaryrefslogtreecommitdiff
path: root/core/bytes/reader.odin
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2022-09-15 10:00:50 +0100
committergingerBill <bill@gingerbill.org>2022-09-15 10:00:50 +0100
commitf50fc33749d550187a41b62f203c33549073fbf3 (patch)
treef34732c0db5b9be5bcb7e50da9ab09720f8b6ac4 /core/bytes/reader.odin
parent1e595f2e2697342e82af7cae6682378a64ae5897 (diff)
Clean up of the core library to make the stream vtables not be pointers directly.
Diffstat (limited to 'core/bytes/reader.odin')
-rw-r--r--core/bytes/reader.odin4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/bytes/reader.odin b/core/bytes/reader.odin
index b10fd009c..7c37f3061 100644
--- a/core/bytes/reader.odin
+++ b/core/bytes/reader.odin
@@ -17,7 +17,7 @@ reader_init :: proc(r: ^Reader, s: []byte) {
reader_to_stream :: proc(r: ^Reader) -> (s: io.Stream) {
s.stream_data = r
- s.stream_vtable = _reader_vtable
+ s.stream_vtable = &_reader_vtable
return
}
@@ -137,7 +137,7 @@ reader_write_to :: proc(r: ^Reader, w: io.Writer) -> (n: i64, err: io.Error) {
@(private)
-_reader_vtable := &io.Stream_VTable{
+_reader_vtable := io.Stream_VTable{
impl_size = proc(s: io.Stream) -> i64 {
r := (^Reader)(s.stream_data)
return reader_size(r)