Discussion:
[Cocci] "llu" integer literal suffix confuses coccinelle
Timur Tabi
2018-12-06 00:03:50 UTC
Permalink
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.
Julia Lawall
2018-12-06 06:03:43 UTC
Permalink
Post by Timur Tabi
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.
OK, so problem. I will try to add it.

julia
Post by Timur Tabi
_______________________________________________
Cocci mailing list
https://systeme.lip6.fr/mailman/listinfo/cocci
Julia Lawall
2018-12-06 06:30:51 UTC
Permalink
Post by Timur Tabi
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.
This is fixed. Thanks for the report.

julia
Post by Timur Tabi
_______________________________________________
Cocci mailing list
https://systeme.lip6.fr/mailman/listinfo/cocci
Loading...