Skip to content

Commit

Permalink
Another case of native_int for Array
Browse files Browse the repository at this point in the history
  • Loading branch information
dbussink committed Mar 5, 2013
1 parent 6a1e533 commit 33f30af
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions vm/arguments.cpp
Expand Up @@ -9,7 +9,8 @@ namespace rubinius {
tup->put(state, i, get_argument(i));
}

for(uint32_t i = 0, n = total(); i < ary->size(); i++, n++) {
uint32_t n = total();
for(native_int i = 0; i < ary->size(); i++, n++) {
tup->put(state, n, ary->get(state, i));
}

Expand All @@ -23,7 +24,8 @@ namespace rubinius {
tup->put(state, i, ary->get(state, i));
}

for(uint32_t i = 0, n = ary->size(); i < total(); i++, n++) {
native_int n = ary->size();
for(uint32_t i = 0; i < total(); i++, n++) {
tup->put(state, n, get_argument(i));
}

Expand Down

0 comments on commit 33f30af

Please sign in to comment.