[prev in list] [next in list] [prev in thread] [next in thread] 

List:       axp-redhat
Subject:    Re: casting int to / from pointer on alpha
From:       Richard Henderson <rth () dot ! cygnus ! com>
Date:       1997-10-30 9:57:47
[Download RAW message or body]

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

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic