# HG changeset patch # User ib # Date 1353672536 0 # Node ID 3e8dcfa3ceef5e98380ba1e80f38dbe1f0092d08 # Parent a3e8af09792d225def921d3224b692c44c1451d6 Prevent unintended sign extension from int to long on 64-bit machines. If the property format is 32, the property data will be stored as an array of longs (which on 64-bit machines will be 64-bit values that are padded in the upper 4 bytes). diff -r a3e8af09792d -r 3e8dcfa3ceef gui/ui/widgets.c --- a/gui/ui/widgets.c Fri Nov 23 10:31:07 2012 +0000 +++ b/gui/ui/widgets.c Fri Nov 23 12:08:56 2012 +0000 @@ -18,6 +18,7 @@ #include #include +#include #include #include @@ -100,7 +101,7 @@ data = gdk_pixbuf_get_pixels(pixbuf); for (i = csize; i < guiIcon.collection_size; data += 4, i++) - guiIcon.collection[i] = (data[3] << 24) | AV_RB24(data); // RGBA -> ARGB + guiIcon.collection[i] = (uint32_t)(data[3] << 24) | AV_RB24(data); // RGBA -> ARGB } g_object_unref(pixbuf);