[lkml]   [2001]   [Oct]   [11]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: [PATCH] 2.4.10-ac11 parport_pc.c bugfix
Thomas Hood [] wrote:
> I guess the question is: Which way is more portable? Is
> "(unsigned long)-1" liable to turn out as something other than
> ~0U?
> If your way of expressing it is more portable then we should
> make the change ... BOTH in pnp_bios.c and in parport_pc.c .
> Opinions?

unsigned long is 64-bits on 64-bit archs, and so (unsigned long)-1 will be
different than on intel...

I think that's ~0UL?

Maybe this is why I can't get pnp stuff to work on my alpha?

-- Bob

Bob McElrath (
Univ. of Wisconsin at Madison, Department of Physics
[unhandled content-type:application/pgp-signature]
 \ /
  Last update: 2005-03-22 13:08    [W:0.044 / U:1.012 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site