From: koehler@eisner.decus.org (Bob Koehler)
Subject: Re: help request
Date: 8 Jan 2001 08:41:33 -0500 [thread overview]
Message-ID: <STQOVX9Fh0Sg@eisner.decus.org> (raw)
In-Reply-To: 3A59940F.4D094524@axposf.ing.unitn.it
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 <stdlib.h> 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
prev parent reply other threads:[~2001-01-08 13:41 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-01-08 10:18 help request Mattia Zomer
2001-01-08 13:41 ` Bob Koehler [this message]
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox