home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.mac.programmer
- Path: sparky!uunet!mcsun!sunic!corax.udac.uu.se!tdb!mikaelk
- From: mikaelk@tdb.uu.se (Mikael Kristoffersson)
- Subject: Re: Another THINK C 5.0.3 bug?
- Message-ID: <1992Nov9.172844.11567@tdb.uu.se>
- Organization: Dept. of Scientific Computing, Uppsala Univ.
- X-Newsreader: TIN [version 1.1 PL6]
- References: <#9m158g@rpi.edu>
- Date: Mon, 9 Nov 1992 17:28:44 GMT
- Lines: 28
-
- Chewbacca (simsh@crockett1a.its.rpi.edu) wrote:
- : Hello everyone. Here is my test program:
- :
- : #include <stdio.h>
- :
- : void main()
- : {
- : int h;
- : h=5;
- : printf("%d\n",h);
- : }
- :
- : Simple enough. Well, with 4-bit ints turned on, this program prints out 0.
- : With 4-bit ints off, it prints 5 like it should. The global optimizer is off.
- : Is this another bug? Or has it already been seen and I just didn't read about
- : it?
- :
-
- If you change size of integers, you will have to re-compile the ANSI library
- too. The library delivered with THINK-C is compiled with 16-bit ints, and
- will not work with code compiled with the "4-byte ints" (32-bit ints) option
- on. All the source-code is supplied, so it's no big deal, but it has to be done.
-
-
- /Mikael Kristoffersson
-
- ********************************************************************************
- English is not my native language. E-mail: mikaelk@tdb.uu.se
-