diff options
author | Nathan Sidwell <nathan@acm.org> | 2020-05-04 10:06:40 -0700 |
---|---|---|
committer | Nathan Sidwell <nathan@acm.org> | 2020-05-04 10:08:13 -0700 |
commit | e6b31fc717207565f144aaefa608344789221f07 (patch) | |
tree | 0e4e6a9f0477e50311c78b9be6c4a1af3a0b2f10 /gcc | |
parent | bb6ce5422066b434f51f6475335788541fd82543 (diff) | |
download | gcc-e6b31fc717207565f144aaefa608344789221f07.zip gcc-e6b31fc717207565f144aaefa608344789221f07.tar.gz gcc-e6b31fc717207565f144aaefa608344789221f07.tar.bz2 |
libstdc++: Avoid negating a size_t [pr 94747]
Although the code here is well formed, it doesn't show intent well.
The reason checkers trigger on this is that it is a cause of real
bugs. So, negate a ptrdiff_t instead.
* libsupc++/dyncast.cc (__dynamic_cast): Cast offsetof to
ptrdiff_t before negation, to show intent more clearly.
Diffstat (limited to 'gcc')
0 files changed, 0 insertions, 0 deletions