Re: [dev] [st] why is Glyph.fg, Glyph.bg long?

From: Roberto E. Vargas Caballero <k0ga_AT_shike2.com>
Date: Wed, 13 Nov 2013 12:51:03 +0100

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
Received on Wed Nov 13 2013 - 12:51:03 CET

This archive was generated by hypermail 2.3.0 : Wed Nov 13 2013 - 13:00:07 CET