Skip to content

Commit

Permalink
Use proper condition for native method frame name
Browse files Browse the repository at this point in the history
  • Loading branch information
dbussink committed Oct 1, 2012
1 parent b7619b9 commit 6a10774
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vm/call_frame.cpp
Expand Up @@ -83,7 +83,7 @@ namespace rubinius {


if(NativeMethodFrame* nmf = cf->native_method_frame()) { if(NativeMethodFrame* nmf = cf->native_method_frame()) {
NativeMethod* nm = try_as<NativeMethod>(nmf->get_object(nmf->method())); NativeMethod* nm = try_as<NativeMethod>(nmf->get_object(nmf->method()));
if(nm && !nm->name()->symbol_p()) { if(nm && nm->name()->symbol_p()) {
stream << "capi:" << nm->name()->debug_str(state) << " at "; stream << "capi:" << nm->name()->debug_str(state) << " at ";
stream << nm->file()->c_str(state); stream << nm->file()->c_str(state);
} else { } else {
Expand Down

0 comments on commit 6a10774

Please sign in to comment.