Re: inline pixbufs



Dan Winship <danw@helixcode.com> writes:
> > +/* Is this Evil? I'm not sure. */
> > +#define GDK_PIXBUF_INLINE_MAGIC_NUMBER (* (guint32 *) "GdkPixbufMagic")
> 
> Yes, it's Evil. It generates a different value on big- and little-
> endian machines.

And may cause SIGSEGVs on some machines due to bad alignment.

- Hari
-- 
Raja R Harinath ------------------------------ harinath@cs.umn.edu
"When all else fails, read the instructions."      -- Cahn's Axiom
"Our policy is, when in doubt, do the right thing."   -- Roy L Ash




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]