On Wed, Nov 28, 2018 at 01:32:21PM +1100, Benjamin Herrenschmidt wrote: > On Wed, 2018-11-28 at 11:13 +1100, David Gibson wrote: > > Don't you need a cast to avoid (nsr << 8) being a shift-wider-than-size? > > Shouldn't be a problem as long as it fits in an int, no ?
I dunno, I can never remember the rules about when C extends and when it doesn't. I'm not sure anybody does, which is kind of the point. -- David Gibson | I'll have my music baroque, and my code david AT gibson.dropbear.id.au | minimalist, thank you. NOT _the_ _other_ | _way_ _around_! http://www.ozlabs.org/~dgibson
signature.asc
Description: PGP signature