delorie.com/djgpp/bugs/show.cgi   search  
Bug 000297

When Created: 07/31/1999 14:00:46
Against DJGPP version: 2.02
By whom: MDK187@DeathsDoor.com
Abstract: int size problem
When I write c++ code like this,

   cout << sizeof(int) << sizeof(long);

it reports that both integers and long int's take up 4 bytes.  I am new to DJGPP, and I am wondering if it is suppose to be like this.  It would be pointless if it were, since it would be the exact same type and you couldn't use a 16-bit int to automatically wrap it on overflow modulo 0xFF.

MDK187

NOTE: I DO NOT have an ALPHA PROCESSOR, I AM USING AN X86 BASED INTEL.

Note added: 08/03/1999 10:00:20
By whom: broeker@physik.rwth-aachen.de
1) Posting the same problem report twice is kind of pointless.

2) This is no more a bug than #296 is (which see)

I'll close this, as well.

Closed on 08/03/1999 10:00:12: Not a bug, and repeated posting (see 296)
By whom: broeker@physik.rwth-aachen.de



  webmaster     delorie software   privacy  
  Copyright © 2010   by DJ Delorie     Updated Jul 2010