Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

[dotnet] fixed my logic bug; oops.

  • Loading branch information...
commit c6aa078e0532248c8818e65fd4d0c67e1eb6ab01 1 parent d3c1b8f
Matthew Wilson authored November 22, 2010
2  dotnet/runtime/Runtime/Ops/Metamodel.cs
@@ -43,7 +43,7 @@ public static RakudoObject instance_of(ThreadContext TC, RakudoObject WHAT)
43 43
         /// <returns></returns>
44 44
         public static RakudoObject repr_defined(ThreadContext TC, RakudoObject Obj)
45 45
         {
46  
-            return Ops.box_int(TC, !(Obj is object) || Obj.STable.REPR.defined(TC, Obj) ? 1 : 0, TC.DefaultBoolBoxType);
  46
+            return Ops.box_int(TC, Obj is object && Obj.STable.REPR.defined(TC, Obj) ? 1 : 0, TC.DefaultBoolBoxType);
47 47
         }
48 48
 
49 49
         /// <summary>

0 notes on commit c6aa078

Please sign in to comment.
Something went wrong with that request. Please try again.