Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[dotnet] Make the repr_defined op return an object, so we can actuall…
…y, like, use it from the setting.
  • Loading branch information
jnthn committed Oct 29, 2010
1 parent 0d7097b commit c8d35ab
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dotnet/runtime/Runtime/Ops.cs
Expand Up @@ -41,9 +41,9 @@ public static RakudoObject instance_of(ThreadContext TC, RakudoObject WHAT)
/// </summary>
/// <param name="Obj"></param>
/// <returns></returns>
public static bool repr_defined(ThreadContext TC, RakudoObject Obj)
public static RakudoObject repr_defined(ThreadContext TC, RakudoObject Obj)
{
return Obj.STable.REPR.defined(TC, Obj);
return Ops.box_int(TC, Obj.STable.REPR.defined(TC, Obj) ? 1 : 0, TC.DefaultBoolBoxType);
}

/// <summary>
Expand Down

0 comments on commit c8d35ab

Please sign in to comment.