Comment Re:Nice (Score 1) 485
C does not allow accessing an object of type float via an lvalue of type int. You need to either use a union (still invalid, but supported by most compilers) or memcpy. In fact this code will not work with gcc 4.1, which has improved aliasing analysis.