| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -710,7 +710,7 @@ internal static bool ToPrimitive(BorrowedReference value, Type obType, out objec | |||
| 710 | 710 | { | |
| 711 | 711 | if (Runtime.Is32Bit) | |
| 712 | 712 | { | |
| 713 | - if (!Runtime.PyLong_Check(value)) | ||
| 713 | + if (!Runtime.PyInt_Check(value)) | ||
| 714 | 714 | { | |
| 715 | 715 | goto type_error; | |
| 716 | 716 | } | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1101,11 +1101,6 @@ internal static bool PyBool_Check(BorrowedReference ob) | |||
| 1101 | 1101 | ||
| 1102 | 1102 | internal static NewReference PyInt_FromInt64(long value) => PyLong_FromLongLong(value); | |
| 1103 | 1103 | ||
| 1104 | - internal static bool PyLong_Check(BorrowedReference ob) | ||
| 1105 | - { | ||
| 1106 | - return PyObject_TYPE(ob) == PyLongType; | ||
| 1107 | - } | ||
| 1108 | - | ||
| 1109 | 1104 | internal static NewReference PyLong_FromLongLong(long value) => Delegates.PyLong_FromLongLong(value); | |
| 1110 | 1105 | ||
| 1111 | 1106 | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments