about summary refs log tree commit diff stats
path: root/072channel.mu
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2016-04-23 14:51:20 -0700
committerKartik K. Agaram <vc@akkartik.com>2016-04-23 14:51:20 -0700
commit991d76f32817f5515fb8db25a7d5ca2912cfe4ac (patch)
treec6b719df15532d4d5b91feae1f927f2be8a7dc9e /072channel.mu
parent538815670a8747e68dd95cd43e0ac1fce184f781 (diff)
downloadmu-991d76f32817f5515fb8db25a7d5ca2912cfe4ac.tar.gz
2860 - rename 'index-address' to 'put-index'
Diffstat (limited to '072channel.mu')
-rw-r--r--072channel.mu3
1 files changed, 1 insertions, 2 deletions
diff --git a/072channel.mu b/072channel.mu
index 81bc1479..0847f2ce 100644
--- a/072channel.mu
+++ b/072channel.mu
@@ -71,8 +71,7 @@ def write out:address:shared:sink:_elem, val:_elem -> out:address:shared:sink:_e
   # store val
   circular-buffer:address:shared:array:_elem <- get *chan, data:offset
   free:number <- get *chan, first-free:offset
-  dest:address:_elem <- index-address *circular-buffer, free
-  *dest <- copy val
+  *circular-buffer <- put-index *circular-buffer, free, val
   # mark its slot as filled
   # todo: clear the slot itself
   free <- add free, 1