From: Carsten Mattner <carstenmattner@googlemail.com>
To: "Jan D." <jan.h.d@swipnet.se>
Cc: Emacs developers <emacs-devel@gnu.org>
Subject: Re: nsterm.m warnings
Date: Thu, 5 Jan 2012 12:21:43 +0100 [thread overview]
Message-ID: <CACY+HvrFME=QpdV7AXu+a4zCYdP7+UpDCoV4zUrmG9AUcP2wBg@mail.gmail.com> (raw)
In-Reply-To: <4F0551B9.5080305@swipnet.se>
On Thu, Jan 5, 2012 at 8:31 AM, Jan D. <jan.h.d@swipnet.se> 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.
prev parent reply other threads:[~2012-01-05 11:21 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-01-04 17:53 nsterm.m warnings Carsten Mattner
2012-01-04 19:57 ` Jan Djärv
2012-01-04 23:49 ` Carsten Mattner
2012-01-05 7:31 ` Jan D.
2012-01-05 11:21 ` Carsten Mattner [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CACY+HvrFME=QpdV7AXu+a4zCYdP7+UpDCoV4zUrmG9AUcP2wBg@mail.gmail.com' \
--to=carstenmattner@googlemail.com \
--cc=emacs-devel@gnu.org \
--cc=jan.h.d@swipnet.se \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.