Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitdd41fcc

Browse files
committed
fixup! Disable implicit conversions, that might lose information:
fixes for#1568
1 parent1ca0bdb commitdd41fcc

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

‎src/runtime/converter.cs

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -361,6 +361,12 @@ internal static bool ToManagedValue(IntPtr value, Type obType,
361361
}
362362
result=cb.type.Value;
363363
returntrue;
364+
365+
casenull:
366+
break;
367+
368+
default:
369+
thrownewArgumentException("We should never receive instances of other managed types");
364370
}
365371

366372
if(value==Runtime.PyNone&&!obType.IsValueType)
@@ -513,7 +519,7 @@ internal static bool ToManagedValue(IntPtr value, Type obType,
513519
{
514520
if(setError)
515521
{
516-
Exceptions.SetError(ex.InnerException);
522+
Exceptions.SetError(ex);
517523
}
518524
returnnull;
519525
}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp