On Wed, Nov 13, 2013 at 11:57:57AM +0100, Johannes Hofmann wrote: > Hi, > > why is a type that can have a different number of bits on 32/64 bit > systems used for Glyph.fg and Glyph.bg? > Wouldn't unsigned int be enough?
and int can not be different? If we want be standard complaint it must be long, because long is at least 32 bits for sure, but int can be only 16 bits. Actually, doesn't matter if it is 32 or 64 bits, because we are interested only in the low 32 bits, but if you want to be sure that you are going to have only 32 bits, then use int32_t. Regards, -- Roberto E. Vargas Caballero