From: "Clément Pit--Claudel" <clement.pit@gmail.com>
To: 23993@debbugs.gnu.org
Cc: alan@idiocy.org
Subject: bug#23993: [PATCH] Fix cursor display (bug#23993)
Date: Sat, 16 Jul 2016 11:13:26 +0200 [thread overview]
Message-ID: <5789FAB6.8000501@gmail.com> (raw)
In-Reply-To: <20160715201555.GA93647@breton.holly.idiocy.org>
[-- Attachment #1.1: Type: text/plain, Size: 749 bytes --]
On 2016-07-15 22:15, Alan Third wrote:
> Eli, I just wanted to run this by you because you wrote this code and
> I'm not sure if that =- is just a typo or it's something I've never
> seen before. My guess is it's a typo and gcc happily treats it as -=,
> but clang handles it more like 'y = y - a - b' resulting in odd
> behaviour on OS X.
In fact, both Clang and GCC treat it the same (as '=' followed by a unary minus):
#include <stdio.h>
int main () {
int y = 1;
y =- 1; // Same as y = -1;
printf("%d\n", y); // Prints "-1"
}
Interestingly, clang warns about this:
5 5 warning use of unary operator that may be intended as compound assignment (-=) (c/c++-clang)
Thanks for spotting it!
Clément.
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 819 bytes --]
prev parent reply other threads:[~2016-07-16 9:13 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-07-15 15:11 bug#23993: 25.0.91; cursor vanishes at prompt David Reitter
2016-07-15 16:11 ` Clément Pit--Claudel
2016-07-15 19:01 ` Alan Third
2016-07-15 20:15 ` bug#23993: [PATCH] Fix cursor display (bug#23993) Alan Third
2016-07-16 2:50 ` David Reitter
2016-07-16 6:54 ` Eli Zaretskii
2016-07-16 9:13 ` Clément Pit--Claudel [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=5789FAB6.8000501@gmail.com \
--to=clement.pit@gmail.com \
--cc=23993@debbugs.gnu.org \
--cc=alan@idiocy.org \
/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.