about summary refs log tree commit diff stats
path: root/043space.cc
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2016-03-12 18:32:53 -0800
committerKartik K. Agaram <vc@akkartik.com>2016-03-12 18:32:53 -0800
commita2739bc6340514078055f4c2e5085660d34e0528 (patch)
tree6bc63229184af79d45b08da11a93f1410ae46204 /043space.cc
parent8aa1baa42c67b53ac30e0ce9961e367dfe435fd6 (diff)
downloadmu-a2739bc6340514078055f4c2e5085660d34e0528.tar.gz
2762
Diffstat (limited to '043space.cc')
-rw-r--r--043space.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/043space.cc b/043space.cc
index f16240ca..c9a0e7dc 100644
--- a/043space.cc
+++ b/043space.cc
@@ -82,7 +82,7 @@ long long int address(long long int offset, long long int base) {
 
 //:: reads and writes to the 'default-space' variable have special behavior
 
-:(after "void write_memory(reagent x, vector<double> data)")
+:(after "void write_memory(reagent x, const vector<double>& data)")
   if (x.name == "default-space") {
     if (!scalar(data)
         || !x.type
@@ -188,7 +188,7 @@ if (curr.name == "new-default-space") {
       raise << "no space allocated for default-space in recipe " << current_recipe_name() << "; are you using names?\n" << end();
     return result;
   }
-:(after "void write_memory(reagent x, vector<double> data)")
+:(after "void write_memory(reagent x, const vector<double>& data)")
   if (x.name == "number-of-locals") {
     raise << maybe(current_recipe_name()) << "can't write to special name 'number-of-locals'\n" << end();
     return;
n163'>163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234