Usenet comp.sys.dec (1990-2013)
 help / color / mirror / Atom feed
From: duz@roxi.rz.fht-mannheim.de (Dirk Zoller)
Subject: longvar << (long)1 ??
Date: Thu, 08 Sep 94 08:34:52 CET	[thread overview]
Message-ID: <1994Sep8.083452.3086@roxi.rz.fht-mannheim.de> (raw)

Hello,

Porting one of my programs to an DEC alpha platform a fellow on the
net scattered several type casts in the code which I don't quite understand.
He uses GNU-C.
There are long-variables (64 Bit integers) to be shifted. He casts
the shift-count to long too. Like this:

	long l;

	...
	l <<= (long)1;

Is this neccessary? If so: Isn't that a bug in the compiler?
I don't read this usegroup normally, so please mail a response.

Thank you.

Dirk

---
duz@roxi.rz.fht-mannheim.de <Dirk Zoller>
"Software is neither science nor engineering.
 It's really an obscure form of poetry."


                 reply	other threads:[~1994-09-08  7:34 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed
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