Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

[dotnet] fixed my logic bug; oops.

  • Loading branch information...
commit c6aa078e0532248c8818e65fd4d0c67e1eb6ab01 1 parent d3c1b8f
Matthew Wilson diakopter authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  dotnet/runtime/Runtime/Ops/Metamodel.cs
2  dotnet/runtime/Runtime/Ops/Metamodel.cs
View
@@ -43,7 +43,7 @@ public static RakudoObject instance_of(ThreadContext TC, RakudoObject WHAT)
/// <returns></returns>
public static RakudoObject repr_defined(ThreadContext TC, RakudoObject Obj)
{
- return Ops.box_int(TC, !(Obj is object) || Obj.STable.REPR.defined(TC, Obj) ? 1 : 0, TC.DefaultBoolBoxType);
+ return Ops.box_int(TC, Obj is object && Obj.STable.REPR.defined(TC, Obj) ? 1 : 0, TC.DefaultBoolBoxType);
}
/// <summary>
Please sign in to comment.
Something went wrong with that request. Please try again.