File tree 2 files changed +4
-4
lines changed 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 55
55
- Meinrad Recheis ([ @henon ] ( https://github.com/henon ) )
56
56
- Mohamed Koubaa ([ @koubaa ] ( https://github.com/koubaa ) )
57
57
- Patrick Stewart ([ @patstew ] ( https://github.com/patstew ) )
58
- - Peter Kese ([ @patstew ] ( https://github.com/pkese ) )
58
+ - Peter Kese ([ @pkese ] ( https://github.com/pkese ) )
59
59
- Raphael Nestler ([ @rnestler ] ( https://github.com/rnestler ) )
60
60
- Rickard Holmberg ([ @rickardraysearch ] ( https://github.com/rickardraysearch ) )
61
61
- Sam Winstanley ([ @swinstanley ] ( https://github.com/swinstanley ) )
Original file line number Diff line number Diff line change @@ -1619,12 +1619,12 @@ internal static string GetManagedString(IntPtr op)
1619
1619
if ( type == PyUnicodeType )
1620
1620
{
1621
1621
using var p = PyUnicode_AsUTF16String ( new BorrowedReference ( op ) ) ;
1622
- var bytesPtr = p . DangerousMoveToPointerOrNull ( ) ;
1623
- nint bytesLength = ( nint ) Runtime . PyBytes_Size ( bytesPtr ) ;
1622
+ var bytesPtr = p . DangerousGetAddress ( ) ;
1623
+ int bytesLength = ( int ) Runtime . PyBytes_Size ( bytesPtr ) ;
1624
1624
char * codePoints = ( char * ) PyBytes_AsString ( bytesPtr ) ;
1625
1625
return new string ( codePoints ,
1626
1626
startIndex : 1 , // skip BOM
1627
- length : ( int ) ( bytesLength / 2 - 1 ) ) ; // utf16 - BOM
1627
+ length : bytesLength / 2 - 1 ) ; // utf16 - BOM
1628
1628
}
1629
1629
1630
1630
return null ;
You can’t perform that action at this time.
0 commit comments