Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!seismo!rutgers!mit-eddie!uw-beaver!ubc-vision!alberta!sask!long From: long@sask.UUCP (Warren Long) Newsgroups: comp.sys.atari.st Subject: MWC problem with 'long int' Message-ID: <752@sask.UUCP> Date: Fri, 29-May-87 20:01:32 EDT Article-I.D.: sask.752 Posted: Fri May 29 20:01:32 1987 Date-Received: Tue, 2-Jun-87 01:45:19 EDT Organization: University of Saskatchewan Lines: 37 I have been porting some programs written to run on a SUN system to my atari with MWC v.2. I have discovered that: Part A: long int temp1; int m; ------ m= anything....; temp1 += m; ------- always leaves temp1 = 0; To try to solve this, I separated the statements: ------ m = anything....; temp1 = temp1 + m; ------ 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. Part B: In spite of several attempts, a few weeks apart, I still haven't gotten any file IO to work with MWC in the UNIX mode (ie. using integer file descriptors). In all cases, I have given up, and returned to the trusty FILE *fname. Is anybody else experiencing similar problems?? Warren Long -- =-=-=-=-=-Warren Long at University of Saskatchewan, Canada-=-=-=-=- Home: 78 Carleton Dr.,Saskatoon, Sasakatchewan, S7H 3N6 Phone: (306)-955-1237 =-=-=-=-=-U-Email: ...!ihnp4!alberta!sask!long -=-=-=-=-=-=-=-=-