Re: portability question
- From: Magnus Bergman <magnus bergman observer net>
- To: gtk-devel-list gnome org
- Subject: Re: portability question
- Date: Wed, 17 Dec 2003 16:32:36 +0100
On Wed, 17 Dec 2003 14:47:08 +0800
James Henstridge <james daa com au> wrote:
> On 17/12/2003 5:53 AM, Christopher Smith wrote:
>
> >On Tue, 2003-12-16 at 13:10, Owen Taylor wrote:
> >
> >
> >>Part of the GLib porting process is making sure that the
> >>size of the GType integral type is the same as the size of
> >>a pointer. Luckily for the ease of the porting process,
> >>all common platforms have long and pointers with the
> >>same size.
> >>
> >>
> >
> >Except 64-bit Solaris of course. ;-)
> >
> >
> And Win64, which has 32-bit longs.
I might be wrong here, but doesn't that go against the C standard?
Shouldn't long be (at least) 64 bits on a 64-bit platform? I thought
ANSI C guaranteed that a pointer should fit inside a long. If that's not
the case this might be a huge portability problem then 64-bit platforms
become more common.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]