On Thu, 2008-04-10 at 23:15 +0100, David Howells wrote: > Harvey Harrison <harvey.harrison@xxxxxxxxx> wrote: > > > Expands to int, not unsigned int, I think that cast is still needed? > > What for? The return is going to do the same cast anyway because of the > function return type. > > David Well, for the u16 case, won't the compiler warn about truncating the return if I return an int when the function returns u16? In the u64 case, I need the cast to ensure it expands to u64 rather than int from the shift. Agreed in the u32 case, but then it looks different than the u16/u64 case (cargo-cult I know, but nice for consistency). Harvey -- To unsubscribe from this list: send the line "unsubscribe linux-arch" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html