From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fa528,9af6b1b7e919271c X-Google-Attributes: gidfa528,public X-Google-ArrivalTime: 2001-01-08 05:42:14 PST Path: supernews.google.com!sn-xit-03!supernews.com!cyclone-sjo1.usenetserver.com!news-out.usenetserver.com!europa.netcrusader.net!152.163.239.131!portc03.blue.aol.com!newsfeed.cwix.com!sjc-peer.news.verio.net!news.verio.net!iad-read.news.verio.net.POSTED!koehler From: koehler@eisner.decus.org (Bob Koehler) Newsgroups: comp.unix.tru64 Subject: Re: help request Message-ID: References: <3A59940F.4D094524@axposf.ing.unitn.it> Organization: DECUServe Date: 8 Jan 2001 08:41:33 -0500 NNTP-Posting-Host: 216.44.122.34 X-Complaints-To: abuse@verio.net X-Trace: iad-read.news.verio.net 978961297 216.44.122.34 (Mon, 08 Jan 2001 13:41:37 GMT) NNTP-Posting-Date: Mon, 08 Jan 2001 13:41:37 GMT Xref: supernews.google.com comp.unix.tru64:1364 In article <3A59940F.4D094524@axposf.ing.unitn.it>, Mattia Zomer <1120ic@axposf.ing.unitn.it> writes: > I had to compile a C program on an AlphaStation DS20/E, > Digital Unix version 4.0F. > The compiler had a problem because random was declared as long > instead of int. > Are int and long equivalent and interchangeable under this sistem? > If not, how can I make the program work ? Please use a more meaningfull title for your posts. Lots of people post wnating help. long on Tru64 is 64 bit, int is 32 bit, this tends to keep with the original K&R concept of long and int since Alpha is a 64 bit system (long is the longest natural integer for the system). Fix the code so it is declared correctly (#include instead of defining it yourself), and then used correctly. ---------------------------------------------------------------------- Bob Koehler | Computer Sciences Corporation NASA GSFC Flight Software | Federal Sector, Civil Group | please remove ".aspm" when replying