Usenet comp.sys.dec (1990-2013)
 help / color / mirror / Atom feed
* longvar << (long)1 ??
@ 1994-09-08  7:34 Dirk Zoller
  0 siblings, 0 replies; only message in thread
From: Dirk Zoller @ 1994-09-08  7:34 UTC (permalink / 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."


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~1994-09-08  7:34 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1994-09-08  7:34 longvar << (long)1 ?? Dirk Zoller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox