home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / comp / sys / mac / programm / 18219 < prev    next >
Encoding:
Text File  |  1992-11-09  |  1.3 KB  |  40 lines

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