Skip to contentSkip to conversation

2.4.10-ac11 parport_pc.c bugfix

PATCH J.D. Hood 1 participant 1 message Oct 11, 2001

lore
Share & tools
lore

J.D. Hood

author
#0 lore raw

The fact that (unsigned long)-1 and ~0U have different values on different arches isn't a problem.

What would be a problem is if (unsigned long)-1 were liable to be given different values by different compilers, and especially if (unsigned long)-1 were liable to be cast to some number between 0 and 15. But I assume that the type casting rules of C prohibit this---that (unsigned long)-1 is assured to be some very large positive integer. (Indeed, the largest.) However I'm uncertain enough about this assumption that I raise the present question about it.

Assuming that the assumption is correct [:)], the patch is fine as it is and should go in.

BTW what problem is it you are having with PnP BIOS on your arch? Can you refer me to a past thread title?

--
Thomas

____________________________________________________________
Do You Yahoo!?
Get your free @yahoo.co.uk address at http://mail.yahoo.co.uk
or your free @yahoo.ie address at http://mail.yahoo.ie