From: Timur Tabi <timur@kernel.org>
To: cocci <cocci@systeme.lip6.fr>
Subject: [Cocci] "llu" integer literal suffix confuses coccinelle
Date: Wed, 5 Dec 2018 18:03:50 -0600 [thread overview]
Message-ID: <CAOZdJXWcwzt-nKoU2_LG2F7+wvB2Z+qAE=rfYGdiPzksgeHqFQ@mail.gmail.com> (raw)
This line is rejected by coccinelle:
NvU64 barSize = pBus->PciBarSizes[i] * 0x100000llu;
If I change the "llu" to "ull", it works. However, "llu" appears to
be valid C, so it should be accepted. Or at least, gcc accepts it. A
google search says that it's new in C++14.
_______________________________________________
Cocci mailing list
Cocci@systeme.lip6.fr
https://systeme.lip6.fr/mailman/listinfo/cocci
next reply other threads:[~2018-12-06 0:04 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-12-06 0:03 Timur Tabi [this message]
2018-12-06 6:03 ` [Cocci] "llu" integer literal suffix confuses coccinelle Julia Lawall
2018-12-06 6:30 ` Julia Lawall
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='CAOZdJXWcwzt-nKoU2_LG2F7+wvB2Z+qAE=rfYGdiPzksgeHqFQ@mail.gmail.com' \
--to=timur@kernel.org \
--cc=cocci@systeme.lip6.fr \
/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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).