home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / unix / aix / 12793 < prev    next >
Encoding:
Internet Message Format  |  1992-12-22  |  815 b 

  1. Path: sparky!uunet!usc!rpi!bu.edu!buphy.bu.edu!amelcuk
  2. From: amelcuk@buphy.bu.edu (Andre Melcuk)
  3. Newsgroups: comp.unix.aix
  4. Subject: xlf 2.3 and INTEGER overflow
  5. Message-ID: <105537@bu.edu>
  6. Date: 22 Dec 92 22:29:54 GMT
  7. Sender: news@bu.edu
  8. Organization: Boston University Physics Department
  9. Lines: 18
  10.  
  11.  
  12.    It would seem from casual info-monster perusal that xlf
  13. doesn't catch integer overflow. Integer overflow is in fact
  14. mentioned in info explorer, but no switches are available, and
  15. the following simple program doesn't work as expected:
  16.  
  17.     write(*,*) 100000**2
  18.  
  19. or, more realistically
  20.  
  21.     write(*,*) (144*2+450**2)/100000**2
  22.  
  23. I understand that this code should not work (WELL, it's not MY
  24. code), but how can I trap such things?
  25.  
  26. Thanks,
  27.  
  28. Andrew Mel'cuk   amelcuk@dirac.clarku.edu   the victim of the 7206 MONSTER DAT
  29.