Fix error: Undeclared name: p

This commit is contained in:
streof
2021-07-09 13:54:27 +02:00
parent 35230b1a11
commit 2c71494ad1
+1 -1
View File
@@ -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;
}
}