On Sep  6, 2000, Guido Draheim <[EMAIL PROTECTED]> wrote:

>> What happens if short integers occupy 4 bytes?
> Er, actually, I never heard of a platform where that is the case, anyway,
> both tests would fail and the test should choke. Can anybody point out
> a platfrom where sizeof(short) is 4?

I can't but, speaking pedantically, sizeof(short) doesn't have to be 4
for this to break.  short is required to be at least 16 bits, and
that's all.  It may be anything larger than that.  In particular, it
is possible to have both char and short, say 32-bits long, in which
case sizeof(short)==1, but the test fails.

-- 
Alexandre Oliva   Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer                  aoliva@{cygnus.com, redhat.com}
CS PhD student at IC-Unicamp        oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist    *Please* write to mailing lists, not to me

Reply via email to