Skip to content

Commit

Permalink
Implement missing plug for array
Browse files Browse the repository at this point in the history
  • Loading branch information
quajak committed Jun 1, 2022
1 parent f48f108 commit 7375a89
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -83,11 +83,11 @@ public static void Execute()
Assert.IsTrue((resultAsInt == 1110027796), "Single.GetHashCode() doesn't work");

#if false
// Now let's try ToString() again but printed in hex (this test fails for now!)
result = value.ToString("X2");
expectedResult = "0x7FFFFFFF";
// Now let's try ToString() again but printed in hex (this test fails for now!)
result = value.ToString("X2");
expectedResult = "0x7FFFFFFF";

Assert.IsTrue((result == expectedResult), "Int32.ToString(X2) doesn't work");
Assert.IsTrue((result == expectedResult), "Int32.ToString(X2) doesn't work");
#endif
// OK now some mathematical operations as if we were in school!

Expand Down
2 changes: 1 addition & 1 deletion source/Cosmos.Core_Plugs/System/ArrayImpl.cs
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ public static unsafe void SetValue([ObjectPointerAccess] uint* aThis, uint aValu

public static object InternalGetValue(Array aThis, IntPtr aIntPtr)
{
throw new NotImplementedException();
return aThis.GetValue((int)aIntPtr);
}
}
}

0 comments on commit 7375a89

Please sign in to comment.