Skip to content

Commit 44e089a

Browse files
Martin-MolineroC-SELLERS
authored andcommitted
Refactoring precedence resolution
1 parent 0c94228 commit 44e089a

File tree

3 files changed

+203
-464
lines changed

3 files changed

+203
-464
lines changed

src/runtime/indexer.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ internal bool NeedsDefaultArgs(IntPtr args)
6464
return false;
6565
}
6666

67-
var mi = methods[0].MethodBase.UnsafeValue;
67+
var mi = methods[0].MethodBase;
6868
ParameterInfo[] pi = mi.GetParameters();
6969
// need to subtract one for the value
7070
int clrnargs = pi.Length - 1;
@@ -100,7 +100,7 @@ internal IntPtr GetDefaultArgs(IntPtr args)
100100

101101
// Get the default arg tuple
102102
var methods = SetterBinder.GetMethods();
103-
var mi = methods[0].MethodBase.UnsafeValue;
103+
var mi = methods[0].MethodBase;
104104
ParameterInfo[] pi = mi.GetParameters();
105105
int clrnargs = pi.Length - 1;
106106
IntPtr defaultArgs = Runtime.PyTuple_New(clrnargs - pynargs);

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy