A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2006-April/063818.html below:

[Python-Dev] Returning -1 from function with unsigned long type

[Python-Dev] Returning -1 from function with unsigned long type [Python-Dev] Returning -1 from function with unsigned long typeskip at pobox.com skip at pobox.com
Mon Apr 17 23:29:32 CEST 2006
I'm fiddling with the "compile Python w/ C++" stuff and came across a number
of places where a function is defined as returning unsigned long or unsigned
long long but returns -1.  For example, see PyInt_AsUnsignedLongMask.
What's the correct fix for that, return ~0 (assuming twos-complement
arithmetic), cast -1 to unsigned long?  Or does the API need to be changed
somehow?

Skip
More information about the Python-Dev mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4