Monkey wrote:
multiblend does something equivalent to the following:

float p;
int* i=&p;

p=data[x++];
if (*i<0) ...

so ints (always negative) and floats (always positive) can be mixed in
the same array.

I don't know if an inline cast - (int*)&p - would be easier on the
compiler.

If I were doing this, I would at least add

Assert(sizeof(int) == sizeof(float));

If one wishes to be posh, one should declare
and use a union.

 BugBear

--
You received this message because you are subscribed to the Google Groups "Hugin and 
other free panoramic software" group.
A list of frequently asked questions is available at: 
http://wiki.panotools.org/Hugin_FAQ
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at http://groups.google.com/group/hugin-ptx

Reply via email to