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

  1. Newsgroups: comp.sys.mac.programmer
  2. Path: sparky!uunet!caen!zaphod.mps.ohio-state.edu!rpi!simsh
  3. From: simsh@marcus.its.rpi.edu (Chewbacca)
  4. Subject: Re: Another THINK C 5.0.3 bug?
  5. Message-ID: <k!n1mnj@rpi.edu>
  6. Nntp-Posting-Host: marcus.its.rpi.edu
  7. References: <#9m158g@rpi.edu>
  8. Date: Mon, 9 Nov 1992 17:51:24 GMT
  9. Lines: 26
  10.  
  11. simsh@crockett1a.its.rpi.edu (Chewbacca) writes:
  12.  
  13. >Hello everyone. Here is my test program:
  14.  
  15. >   #include <stdio.h>
  16.  
  17. >   void main()
  18. >   {
  19. >      int h;
  20. >      h=5;
  21. >      printf("%d\n",h);
  22. >   }
  23.  
  24. >Simple enough. Well, with 4-bit ints turned on, this program prints out 0.
  25. >With 4-bit ints off, it prints 5 like it should. The global optimizer is off.
  26. >Is this another bug? Or has it already been seen and I just didn't read about
  27. >it?
  28.  
  29. Oh shoot! This was my mistake. Thanks to Ephraim Vishniac for pointing it out
  30. to me. I looked up in the manual about it. I didn't realize it meant you
  31. actually have to recompile the entire library from scratch to turn on 4-bit
  32. ints. I tried that and it worked. Sorry to waste bandwidth over this.
  33. -- 
  34. -------------------------------------------------------------------------------
  35.      Hillel Sims                        e-mail: simsh@rpi.edu
  36.      >:-) The Smiling Vulcan            Rensselaer Polytechnic Institute
  37.