Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix
  • Loading branch information
ryoqun committed Mar 5, 2013
1 parent ffdcc7e commit ec4918a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions vm/builtin/array.cpp
Expand Up @@ -88,7 +88,7 @@ namespace rubinius {
}

Array* Array::from_tuple(STATE, Tuple* tup) {
size_t length = tup->num_fields();
native_int length = tup->num_fields();
Array* ary = Array::create(state, length);
ary->tuple_->copy_from(state, tup,
Fixnum::from(0), Fixnum::from(length),
Expand Down Expand Up @@ -227,7 +227,7 @@ namespace rubinius {
}

tuple_->put(state, idx, val);
if((size_t)total_->to_native() <= oidx) {
if(total_->to_native() <= oidx) {
total(state, Fixnum::from(oidx+1));
}
return val;
Expand Down
4 changes: 2 additions & 2 deletions vm/builtin/compiledcode.cpp
Expand Up @@ -90,8 +90,8 @@ namespace rubinius {
int CompiledCode::line(int ip) {
if(lines_->nil_p()) return -3;

size_t fin = lines_->num_fields() - 2;
for(size_t i = 0; i < fin; i += 2) {
native_int fin = lines_->num_fields() - 2;
for(native_int i = 0; i < fin; i += 2) {
Fixnum* start_ip = as<Fixnum>(lines_->at(i));
Fixnum* end_ip = as<Fixnum>(lines_->at(i+2));

Expand Down

0 comments on commit ec4918a

Please sign in to comment.