From 5b56734835099488220b82fe5f08fda8efb67899 Mon Sep 17 00:00:00 2001 From: "Kartik K. Agaram" Date: Thu, 26 Mar 2015 17:20:16 -0700 Subject: 976 --- cpp/020array | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'cpp/020array') 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 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. -- cgit 1.4.1-2-gfad0