diff options
author | rsc <devnull@localhost> | 2006-11-04 20:41:42 +0000 |
---|---|---|
committer | rsc <devnull@localhost> | 2006-11-04 20:41:42 +0000 |
commit | 9a5678a8a95c46913c15a5fc19f73c113e8ed036 (patch) | |
tree | 0a4ea2fc4ec7ada7397ac05b684ecec5e78a4be9 /include/mux.h | |
parent | 3a19470202c5c0f6e9375e5d57535c3d508f2edf (diff) | |
download | plan9port-9a5678a8a95c46913c15a5fc19f73c113e8ed036.tar.gz plan9port-9a5678a8a95c46913c15a5fc19f73c113e8ed036.tar.bz2 plan9port-9a5678a8a95c46913c15a5fc19f73c113e8ed036.zip |
Change GET/GBIT32 macros to explicitly cast final result to u32int.
Otherwise, the type of the expression will be int, and if written to
a uvlong (or just a ulong on most 64-bit systems), it will be
sign-extended.
This was going on in drawfcall with Mouse.msec, which is declared
as a ulong.
This fix assumes that the protocols only send unsigned numbers,
which is true.
Diffstat (limited to 'include/mux.h')
0 files changed, 0 insertions, 0 deletions