Re: warnings
Re: warnings
- Subject: Re: warnings
- From: Eric Albert <email@hidden>
- Date: Tue, 16 Nov 2004 10:24:05 -0800
On Nov 16, 2004, at 9:05 AM, Steve Mills wrote:
Another warning was about how the size of long double might change in
the future. Can anyone elaborate on that? I understand how changing
the size would break code that reads/writes it and expects it to be a
certain size, but are there other implications?
It's primarily an ABI issue. If you were to pass long doubles between
modules or between your application and a system library, long double
changed size, and only one side of the transaction was recompiled with
the new side, the call would work incorrectly.
Any types that you're reading and writing should always be fixed-size
anyway (e.g. uint32_t instead of int), for maximum portability to
things like 64-bit platforms or other operating systems in which
standard types are a different size.
-Eric
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
References: | |
| >warnings (From: Steve Mills <email@hidden>) |