Fix error: Cannot assign to a procedure parameter
This commit is contained in:
1 parent
2c71494ad1
commit
114efbc57c
1 file changed
+1
@@ -26,6 +26,7 @@ ring_prev :: proc(r: ^$R/Ring) -> ^R {
|
|||||||
|
|
||||||
|
|
||||||
ring_move :: proc(r: ^$R/Ring, n: int) -> ^R {
|
ring_move :: proc(r: ^$R/Ring, n: int) -> ^R {
|
||||||
|
r := r;
|
||||||
if r.next == nil {
|
if r.next == nil {
|
||||||
return ring_init(r);
|
return ring_init(r);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user