>Yes, but if you cast to long the result will be 32bit again. Or do you >rely on it being always used in 64bit signed context with sign extension? >While that might work it would seem rather fragile to me, just asking >for similar future bugs.
Even if conversion is to 64-bit unsigned, the value (being signed) will be sign-extended first (to preserve its value modulo 2**<target type width>). Jan -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/