Skip to content

Commit

Permalink
[dotnet] type_object_for op should take an object and unbox it, not a…
Browse files Browse the repository at this point in the history
… low-level string.
  • Loading branch information
jnthn committed Oct 19, 2010
1 parent 88190a8 commit c5c71cc
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions dotnet/runtime/Runtime/Ops.cs
Expand Up @@ -20,9 +20,10 @@ public static class Ops
/// <param name="HOW"></param>
/// <param name="REPRName"></param>
/// <returns></returns>
public static RakudoObject type_object_for(ThreadContext TC, RakudoObject HOW, string REPRName)
public static RakudoObject type_object_for(ThreadContext TC, RakudoObject HOW, RakudoObject REPRName)
{
return REPRRegistry.get_REPR_by_name(REPRName).type_object_for(TC, HOW);
var REPRNameStr = Ops.unbox_str(TC, REPRName);
return REPRRegistry.get_REPR_by_name(REPRNameStr).type_object_for(TC, HOW);
}

/// <summary>
Expand Down

0 comments on commit c5c71cc

Please sign in to comment.