From 2efceef6c1626698984ee725ff733c2e0860a79e Mon Sep 17 00:00:00 2001 From: "Kartik K. Agaram" Date: Fri, 26 Aug 2016 13:47:39 -0700 Subject: 3260 array length = number of elements array size = in locations --- 032array.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to '032array.cc') diff --git a/032array.cc b/032array.cc index 2a4f83ae..0cb27bd3 100644 --- a/032array.cc +++ b/032array.cc @@ -50,7 +50,7 @@ case CREATE_ARRAY: { // Update CREATE_ARRAY product in Run int base_address = product.value; int array_length = to_integer(product.type->right->right->name); - // initialize array size, so that size_of will work + // initialize array length, so that size_of will work trace(9999, "mem") << "storing " << array_length << " in location " << base_address << end(); put(Memory, base_address, array_length); // in array elements int size = size_of(product); // in locations -- cgit 1.4.1-2-gfad0