Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
From: Richard Henderson <rth@dot.cygnus.com>
Subject: Re: casting int to / from pointer on alpha
Date: Thu, 30 Oct 1997 09:57:47 -0800	[thread overview]
Message-ID: <d67f758733a962ff3118713e54a3ada1.axp-list@archive.invalid> (raw)
In-Reply-To: <199710301520.IAA09122@ellpspace.math.ualberta.ca>

On Thu, Oct 30, 1997 at 08:20:51AM -0700, Michal Jaegermann wrote:
> A pointer can swallow an int, although without a cast will raise
> objections and deservedly though.  Although a function expecting
> a pointer and which got an int will cause a misalignment of your stack.

No it won't.  All arguments are padded to 64-bits; 32-bit integer
values are sign extended.

r~

-- 
To unsubscribe: send e-mail to axp-list-request@redhat.com with
'unsubscribe' as the subject.  Do not send it to axp-list@redhat.com

       reply	other threads:[~1997-10-30 17:57 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <199710301520.IAA09122@ellpspace.math.ualberta.ca>
1997-10-30 17:57 ` Richard Henderson [this message]
1997-10-30 13:10 casting int to / from pointer on alpha Bryan B. Thompson
1997-10-30 15:20 ` Michal Jaegermann
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