From aa2562fe7c4f787f3210f6822f08e8887710ea4f Mon Sep 17 00:00:00 2001 From: gingerBill Date: Mon, 14 Dec 2020 14:33:32 +0000 Subject: [PATCH] Replace procedure call --- core/io/io.odin | 2 +- core/io/util.odin | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/core/io/io.odin b/core/io/io.odin index e33b33064..215cf5e10 100644 --- a/core/io/io.odin +++ b/core/io/io.odin @@ -436,7 +436,7 @@ copy_buffer :: proc(dst: Writer, src: Reader, buf: []byte) -> (written: i64, err // It returns the number of bytes copied and the first error that occurred whilst copying, if any. // On return, written == n IFF err == nil copy_n :: proc(dst: Writer, src: Reader, n: i64) -> (written: i64, err: Error) { - nsrc := inline_limited_reader(&Limited_Reader{}, src, n); + nsrc := limited_reader_init(&Limited_Reader{}, src, n); written, err = copy(dst, nsrc); if written == n { return n, nil; diff --git a/core/io/util.odin b/core/io/util.odin index 224bcd7a5..c8ba6c259 100644 --- a/core/io/util.odin +++ b/core/io/util.odin @@ -95,7 +95,6 @@ limited_reader_to_reader :: proc(l: ^Limited_Reader) -> (r: Reader) { return; } - // Section_Reader implements read, seek, and read_at on a section of an underlying Reader_At Section_Reader :: struct { r: Reader_At,