jitcraft/BytecodeCompiler.cpp
changeset 15 d8ed9b8f19ca
parent 14 0784ac5cc347
child 16 23627f8bc421
     1.1 --- a/jitcraft/BytecodeCompiler.cpp	Sat Jun 30 22:31:14 2012 -0700
     1.2 +++ b/jitcraft/BytecodeCompiler.cpp	Sat Jun 30 22:34:48 2012 -0700
     1.3 @@ -141,10 +141,10 @@
     1.4  
     1.5              // If this argument is actually a reference, dereference it now.
     1.6              if (var->type()->isReference()) {
     1.7 -                if (var->type()->isFloat()) {
     1.8 +                if (var->type()->contained()->isFloat()) {
     1.9                      __ getref_f();
    1.10                  } else {
    1.11 -                    assert(name->type()->isInt());
    1.12 +                    assert(var->type()->contained()->isInt());
    1.13                      __ getref_i();
    1.14                  }
    1.15              }