A RetroSearch Logo

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

Search Query:

Showing content from http://mail.python.org/pipermail/python-list/2001-April/078973.html below:

unsigned short in Python 2.0

unsigned short in Python 2.0 unsigned short in Python 2.0Robin 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

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