about summary refs log tree commit diff stats
path: root/035lookup.cc
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2016-05-20 23:45:03 -0700
committerKartik K. Agaram <vc@akkartik.com>2016-05-20 23:45:03 -0700
commit0d21947757a1e8ca4f5c94617fd94753f6d3de56 (patch)
treeb85e01af2bc2dec2b7becd5114ce176d6c098459 /035lookup.cc
parente0659ab38fa6315a0b83a2757582f49976ab38fa (diff)
downloadmu-0d21947757a1e8ca4f5c94617fd94753f6d3de56.tar.gz
2992
Raise an error if a 'put' or 'put-index' doesn't match ingredient and
product. That wouldn't do what you would expect.
Diffstat (limited to '035lookup.cc')
-rw-r--r--035lookup.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/035lookup.cc b/035lookup.cc
index 382d72aa..e56078bc 100644
--- a/035lookup.cc
+++ b/035lookup.cc
@@ -315,7 +315,7 @@ def main [
   5:address:number <- copy 10/unsafe
   # 10 reserved for refcount
   11:number <- copy 1
-  5:address:array:number/lookup <- put-index 1:array:number:3, 5:address:number/lookup, 34
+  1:array:number:3 <- put-index 1:array:number:3, 5:address:number/lookup, 34
 ]
 +mem: storing 34 in location 3