| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent bc932a3 commit 0acc47a
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -540,6 +540,14 @@ static bool ToPrimitive(IntPtr value, Type obType, out Object result, | |||
| 540 | 540 | if (Exceptions.ErrorOccurred()) { | |
| 541 | 541 | goto overflow; | |
| 542 | 542 | } | |
| 543 | + | ||
| 544 | + IntPtr check = Runtime.PyLong_FromUnsignedLong(ui); | ||
| 545 | + int err = Runtime.PyObject_Compare(check, op); | ||
| 546 | + Runtime.Decref(check); | ||
| 547 | + if (0 != err || Exceptions.ErrorOccurred()) { | ||
| 548 | + goto overflow; | ||
| 549 | + } | ||
| 550 | + | ||
| 543 | 551 | result = ui; | |
| 544 | 552 | return true; | |
| 545 | 553 | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments