> actually, even a union won't help you here: "When a value is stored in > a member of an object of union type, the bytes of the object > representation that do not correspond to that member but do correspond > to other members take unspecified values."
in the example, don't all the bytes of i correspond to a byte to u, and thus can't take on unspecified values? or have i read that incorrectly? if i have, then FPdbleword is wrong, and all the code that uses it needs fixing. > Really, the way to do this particular operation portably is to write > it portably, and extract and rearrange the bytes. this certainly is the winning way to do this. clearer and there's no argument as to correctness. - erik
