[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: nsterm.m warnings
From: |
Carsten Mattner |
Subject: |
Re: nsterm.m warnings |
Date: |
Thu, 5 Jan 2012 12:21:43 +0100 |
On Thu, Jan 5, 2012 at 8:31 AM, Jan D. <address@hidden> wrote:
> The code relies on the fact that the compiler can convert a long to an int
> on a 32-bit build. In principle such a conversion can truncate the value.
> But in this case it does not matter, as long as the value is unique within
> the application (Emacs). As the build is 32-bit, the pointer converted to
> long is 32-bit to start with. That long is then converted to an int, so
> there is no truncation.
>
> But it is bad style to change interfaces like this, I'll fix it shortly. I
> guess it was long at some point in time, and then got changed to NSInteger.
Thanks.