unsigned short in Python 2.0
Robin Becker
robin at jessikat.fsnet.co.uk
Tue Apr 3 05:50:53 EDT 2001
In article <mailman.986251203.16491.python-list at python.org>, Michel
Sanner <sanner at scripps.edu> writes
same is true with the sketch code; when I built an extension containing
the "h" descriptor I had to do the following
0) allocate an additional int var initialised to the
same value as the original unsigned short.
1) replace the 'h' descriptor with 'i'
2) replace the &h with &i
3) cast the int to unsigned short in the original
destination variable ie h = (unsigned short)i;
--
Robin Becker
More information about the Python-list
mailing list