about summary refs log tree commit diff stats
path: root/cpp/020array
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2015-03-26 17:20:16 -0700
committerKartik K. Agaram <vc@akkartik.com>2015-03-26 17:20:16 -0700
commit5b56734835099488220b82fe5f08fda8efb67899 (patch)
treee50dadf561b15175f1609a66c6f505bcb1a49582 /cpp/020array
parentfae7033152eebfa7d860146afbfd58f1fb2e7556 (diff)
downloadmu-5b56734835099488220b82fe5f08fda8efb67899.tar.gz
976
Diffstat (limited to 'cpp/020array')
-rw-r--r--cpp/020array4
1 files changed, 4 insertions, 0 deletions
diff --git a/cpp/020array b/cpp/020array
index aafeacf8..96591366 100644
--- a/cpp/020array
+++ b/cpp/020array
@@ -6,6 +6,10 @@ Type[integer_array].is_array = true;
 Type[integer_array].element.push_back(integer);
 Type[integer_array].name = "integer-array";
 
+//: update size mismatch check
+:(replace "if (size_of(x) != data.size())" following "void write_memory(reagent x, vector<int> data)")
+if (!Type[x.types[0]].is_array && size_of(x) != data.size())
+
 //: Arrays can be copied around with a single instruction just like integers,
 //: no matter how large they are.