Commit graph

2 commits

Author SHA1 Message Date
rsc
9a5678a8a9 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.
2006-11-04 20:41:42 +00:00
rsc
9801d5e566 forgot 2006-06-26 00:08:29 +00:00