diff options
author | Kartik K. Agaram <vc@akkartik.com> | 2016-03-13 20:26:47 -0700 |
---|---|---|
committer | Kartik K. Agaram <vc@akkartik.com> | 2016-03-13 20:26:47 -0700 |
commit | b24eb4766ad12eceaafa2ee0d620e070e21a3293 (patch) | |
tree | d7efc84bce7cf75fa18792d02bceb15480690a2d /038location_array.cc | |
parent | 95b2a140094697dec176167154f9b3b31c2ef70f (diff) | |
download | mu-b24eb4766ad12eceaafa2ee0d620e070e21a3293.tar.gz |
2773 - switch to 'int'
This should eradicate the issue of 2771.
Diffstat (limited to '038location_array.cc')
-rw-r--r-- | 038location_array.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/038location_array.cc b/038location_array.cc index 2353a79c..543a384d 100644 --- a/038location_array.cc +++ b/038location_array.cc @@ -25,10 +25,10 @@ bool is_shared_address_of_array_of_numbers(reagent product) { } :(before "End Primitive Recipe Implementations") case TO_LOCATION_ARRAY: { - long long int array_size = SIZE(ingredients.at(0)); - long long int allocation_size = array_size + /*refcount*/1 + /*length*/1; + int array_size = SIZE(ingredients.at(0)); + int allocation_size = array_size + /*refcount*/1 + /*length*/1; ensure_space(allocation_size); - const long long int result = Current_routine->alloc; + const int result = Current_routine->alloc; products.resize(1); products.at(0).push_back(result); // initialize array refcount @@ -36,7 +36,7 @@ case TO_LOCATION_ARRAY: { // initialize array length put(Memory, result+1, array_size); // now copy over data - for (long long int i = 0; i < array_size; ++i) + for (int i = 0; i < array_size; ++i) put(Memory, result+2+i, ingredients.at(0).at(i)); break; } |