From fa708f553a3c314aa1eda75cee3c4e5e3b4f40db Mon Sep 17 00:00:00 2001 From: "Kartik K. Agaram" Date: Thu, 21 Dec 2017 22:20:53 -0800 Subject: 4162 --- html/032array.cc.html | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'html/032array.cc.html') diff --git a/html/032array.cc.html b/html/032array.cc.html index 469d3fd7..a1426054 100644 --- a/html/032array.cc.html +++ b/html/032array.cc.html @@ -120,7 +120,7 @@ if ('onhashchange' in window) { 55 type_tree* array_length_from_type = product.type->right->right; 56 if (!product.type->right->right->atom) 57 ¦ array_length_from_type = array_length_from_type->left; - 58 int array_length = to_integer(array_length_from_type->name); + 58 int array_length = to_integer(array_length_from_type->name); 59 // initialize array length, so that size_of will work 60 trace("mem") << "storing " << array_length << " in location " << base_address << end(); 61 put(Memory, base_address, array_length); // in array elements @@ -181,9 +181,9 @@ if ('onhashchange' in window) { 116 :(code) 117 int static_array_length(const type_tree* type) { 118 if (!type->atom && type->right && !type->right->atom && type->right->right && !type->right->right->atom && !type->right->right->right // exactly 3 types -119 ¦ ¦ && type->right->right->left && type->right->right->left->atom && is_integer(type->right->right->left->name)) { // third 'type' is a number +119 ¦ ¦ && type->right->right->left && type->right->right->left->atom && is_integer(type->right->right->left->name)) { // third 'type' is a number 120 ¦ // get size from type -121 ¦ return to_integer(type->right->right->left->name); +121 ¦ return to_integer(type->right->right->left->name); 122 } 123 cerr << to_string(type) << '\n'; 124 assert(false); @@ -205,7 +205,7 @@ if ('onhashchange' in window) { 140 $error: 0 141 142 :(before "End insert_container Special-cases") -143 else if (is_integer(type->name)) { // sometimes types will contain non-type tags, like numbers for the size of an array +143 else if (is_integer(type->name)) { // sometimes types will contain non-type tags, like numbers for the size of an array 144 type->value = 0; 145 } 146 @@ -452,7 +452,7 @@ if ('onhashchange' in window) { 387 ¦ return type->right->left; 388 } 389 // hack: support array:num:3 without requiring extra parens -390 else if (type->right->right->left && type->right->right->left->atom && is_integer(type->right->right->left->name)) { +390 else if (type->right->right->left && type->right->right->left->atom && is_integer(type->right->right->left->name)) { 391 ¦ assert(!type->right->right->right); 392 ¦ return type->right->left; 393 } @@ -463,9 +463,9 @@ if ('onhashchange' in window) { 398 // x should already be canonized. 399 // hack: look for length in type 400 if (!x.type->atom && x.type->right && !x.type->right->atom && x.type->right->right && !x.type->right->right->atom && !x.type->right->right->right // exactly 3 types -401 ¦ ¦ && x.type->right->right->left && x.type->right->right->left->atom && is_integer(x.type->right->right->left->name)) { // third 'type' is a number +401 ¦ ¦ && x.type->right->right->left && x.type->right->right->left->atom && is_integer(x.type->right->right->left->name)) { // third 'type' is a number 402 ¦ // get size from type -403 ¦ return to_integer(x.type->right->right->left->name); +403 ¦ return to_integer(x.type->right->right->left->name); 404 } 405 // this should never happen at transform time 406 return get_or_insert(Memory, x.value); -- cgit 1.4.1-2-gfad0