🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.atari.st
Article #27069

MWC problem with 'long int'

#27069
From: Warren Long
Date: Sat, 30 May 1987 00:01
37 lines
1533 bytes
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     -=-=-=-=-=-=-=-=-
Technical Details
Message-ID: <752@sask.UUCP>
Path: arc1-ca.pugleaf.net!utzoo!mnetor!seismo!rutgers!mit-eddie!uw-beaver!ubc-vision!alberta!sask!long

Show Full Headers
Complete Article Headers
Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Path: arc1-ca.pugleaf.net!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