[Bf-committers] Radio code!

Alexander Ewering blender at instinctive.de
Mon Dec 11 00:02:00 CET 2006


On Sun, 10 Dec 2006, Ton Roosendaal wrote:

> 	*((unsigned int*)face->v1+3)= ~0;

What looks evil to me here is the question: "Will the compiler know how many
1's to fill in?"...

I mean, basically, ~0 is meaningless. There is no inverse to 0. Well, it
would be infinity. One can only hope the compiler knows that it's either 32
or 64 bits depending on sizeof(unsigned int)...

| alexander ewering              instinctive mediaworks
| xx-mail.com/instinctive     http://www.instinctive.de


More information about the Bf-committers mailing list