From 2c71494ad1620ad2e7da7a2d2c7059c049e63664 Mon Sep 17 00:00:00 2001 From: streof <10353426+streof@users.noreply.github.com> Date: Fri, 9 Jul 2021 13:54:27 +0200 Subject: [PATCH] Fix error: Undeclared name: p --- core/container/ring.odin | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/container/ring.odin b/core/container/ring.odin index fca2db6f9..0e585f059 100644 --- a/core/container/ring.odin +++ b/core/container/ring.odin @@ -64,7 +64,7 @@ ring_len :: proc(r: ^$R/Ring) -> int { n := 0; if r != nil { n = 1; - for p := ring_next(&p); p != r; p = p.next { + for p := ring_next(r); p != r; p = p.next { n += 1; } }