Movatterモバイル変換


[0]ホーム

URL:


unsigned short in Python 2.0

Robin Beckerrobin at jessikat.fsnet.co.uk
Tue Apr 3 05:50:53 EDT 2001


In article <mailman.986251203.16491.python-list at python.org>, MichelSanner <sanner at scripps.edu> writessame is true with the sketch code; when I built an extension containingthe "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-listmailing list

[8]ページ先頭

©2009-2025 Movatter.jp