| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| if (Runtime.PyObject_TYPE(value) != Runtime.PyLongType) | ||
| { | ||
| op = Runtime.PyNumber_Long(value); | ||
| if (op == IntPtr.Zero) | ||
| { | ||
| goto convert_error; | ||
| } | ||
| goto type_error; |
There was a problem hiding this comment.
I think this can be skipped alltogether. https://docs.python.org/3.8/c-api/long.html#c.PyLong_AsUnsignedLongLong already checks the type.
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
What does this implement/fix? Explain your changes.
Fixes an oversight in #1343 that allows PyFloat to continue being converted to uint64.
Does this close any currently open issues?
Fixes the test failures in #1361
Any other comments?
...
Checklist
Check all those that are applicable and complete.