bug-gnulib
[Top][All Lists]
Advanced

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

Re: result type of INT16_C, UINT16_C


From: Paul Eggert
Subject: Re: result type of INT16_C, UINT16_C
Date: Mon, 19 Jun 2006 00:02:04 -0700
User-agent: Gnus/5.1008 (Gnus v5.10.8) Emacs/21.4 (gnu/linux)

Ben Pfaff <address@hidden> writes:

> I think you are overlooking the changes in Technical Corrigendum 1

Yes, as I understand it the intent is that on a typical host with
16-bit short int and 32-bit int, this implementation is correct:

#define INT16_C(v) v
#define UINT16_C(v) v

Note that UINT16_C should not append a 'U' suffix, since unsigned
short int promotes to int.  (This is another detail that Solaris 10
and glibc both get wrong.)




reply via email to

[Prev in Thread] Current Thread [Next in Thread]