Fix container.Array and container.Ring

This commit is contained in:
gingerBill
2020-10-01 17:04:56 +01:00
parent c604e359c7
commit 3a4f0d85a6
2 changed files with 6 additions and 3 deletions
+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(&p); p != r; p = p.next {
n += 1;
}
}