Path: utzoo!utgpu!news-server.csri.toronto.edu!clyde.concordia.ca!uunet!tut.cis.ohio-state.edu!cs.utexas.edu!samsung!usc!wuarchive!udel!udccvax1!mccalpin From: mccalpin@vax1.acs.udel.EDU (John D Mccalpin) Newsgroups: comp.sys.sgi Subject: f77 bug in IIOR ? Message-ID: <6585@vax1.acs.udel.EDU> Date: 11 Jun 90 01:35:40 GMT Organization: College of Marine Studies, Univ. of Delaware Lines: 17 I just noticed that the IIOR function generates an AND operation in the following code! integer*2 i1,i2,i3 i1 = 8 i2 = 512 i3 = iior(i1.i2) print *,i3 end Thus code gives a result of zero! I looked at the code, and there is an AND in there instead of an OR. Switching to IOR gives the correct result.... -- John D. McCalpin mccalpin@vax1.udel.edu Assistant Professor mccalpin@delocn.udel.edu College of Marine Studies, U. Del. mccalpin@scri1.scri.fsu.edu