Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!utgpu!water!watmath!clyde!cbosgd!ucbvax!CORY.BERKELEY.EDU!dillon From: dillon@CORY.BERKELEY.EDU.UUCP Newsgroups: comp.sys.atari.st Subject: Re: MWC problem with 'long int' Message-ID: <8706170613.AA18106@cory.Berkeley.EDU> Date: Wed, 17-Jun-87 02:13:28 EDT Article-I.D.: cory.8706170613.AA18106 Posted: Wed Jun 17 02:13:28 1987 Date-Received: Thu, 18-Jun-87 05:01:30 EDT Sender: daemon@ucbvax.BERKELEY.EDU Lines: 18 :I have been porting some programs written to run on a SUN system to :my atari with MWC v.2. I have discovered that: : :long int temp1; :int m; :------ :m= anything....; :temp1 += m; :------- :always leaves temp1 = 0; :and ended up with the same results. Is this an illegal thing to do?? :I assumed that types would be coersed into the correct thing. This :works fine on SUN, ULTRIX and UNIX. Perfectly legal. 'm' is automatically casted to a long before being added to temp1. -Matt