[cairo] Typo in pixman-edge.c?

Andreas Falkenhahn andreas at airsoftsoftwair.de
Mon Mar 15 04:24:47 PDT 2010


Hi,

I noticed that pixman-edge.c has the following macro definition:

#ifndef WORDS_BIG_ENDIAN
#define SHIFT_4(o)      ((o) << 2)
#else
#define SHIFT_4(o)      ((1 - (o)) << 2)
#endif 

I think the condition should be

#ifndef WORDS_BIGENDIAN

instead because that is the constant that gets defined on big endian
order systems. WORDS_BIG_ENDIAN is not defined anywhere. The
additional underscore seems to be a typo.

Greets,

Andreas
--
"Remember: It's nice to be important but it's more important to be nice!"




More information about the cairo mailing list