From e6d10b02e593af1d2b98acd475d8cfb7cc004b87 Mon Sep 17 00:00:00 2001 From: dogue Date: Sat, 16 May 2026 14:07:41 -0400 Subject: [PATCH] [core:io/utils]: fix undeclared name in read_slice (typo) Fixes a typo where `read_slice` tries to pass a `w` argument to `read_ptr` instead of `r`. --- core/io/util.odin | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/io/util.odin b/core/io/util.odin index c6ad8f525..35297c121 100644 --- a/core/io/util.odin +++ b/core/io/util.odin @@ -10,7 +10,7 @@ read_ptr :: proc(r: Reader, p: rawptr, byte_size: int, n_read: ^int = nil) -> (n read_slice :: proc(r: Reader, slice: $S/[]$T, n_read: ^int = nil) -> (n: int, err: Error) { size := len(slice)*size_of(T) - return read_ptr(w, raw_data(slice), size, n_read) + return read_ptr(r, raw_data(slice), size, n_read) } write_ptr :: proc(w: Writer, p: rawptr, byte_size: int, n_written: ^int = nil) -> (n: int, err: Error) {