unsigned os_t
Tony van der Hoff
tony at mk-net.demon.co.uk
Thu Jul 19 15:22:02 BST 2001
Hi,
I believe os_t, the monotonic time, should be unsigned, not a signed int
as at present.
OSLib practice is that anything on which arithmetic can be performed should
be signed, but I think that in this case the arithmetic is generally to
compare it with a previous time, and this is made a lot harder by it being
signed. I always seem to convert it to unsigned anyway.
If I change it, it will be binary compatible with old code, although anyone
re-linking would have to recompile.
Can anyone think of a good reason not to change os_t to unsigned?
--
Tony van der Hoff | MailTo:tony at mk-net.demon.co.uk
| MailTo:avanderhoff at iee.org
Buckinghamshire, England | http:www.mk-net.demon.co.uk
More information about the oslib-user
mailing list