[PATCH] support for mingw-w64

Ozkan Sezer sezeroz at gmail.com
Fri Sep 11 22:53:12 CEST 2009


On Fri, Sep 11, 2009 at 11:42 PM, Vincent Lefevre <vincent at vinc17.org> wrote:
> On 2009-09-11 14:05:17 +0200, Torbjorn Granlund wrote:
>> My undertanding is that sizeof(ptrdiff_t) == sizeof(size_t) should hold
>> true on any ISO C90 or C99 system.  They only differ in signedness.
>
> This is not guaranteed by the standard. This has the drawback
> that the subtraction of pointers may be wrong in some rare cases.
> So, for very specific applications, there might be a good reason
> to have sizeof(ptrdiff_t) > sizeof(size_t).
>
> More on this subject:
>
>  http://gcc.gnu.org/ml/gcc/2005-07/msg00754.html
>

Thanks for the link.  Abomination, indeed.

> --
> Vincent Lefèvre <vincent at vinc17.org> - Web: <http://www.vinc17.org/>
> 100% accessible validated (X)HTML - Blog: <http://www.vinc17.org/blog/>
> Work: CR INRIA - computer arithmetic / Arénaire project (LIP, ENS-Lyon)
>
>
>

--
Ozkan


More information about the gmp-devel mailing list