aboutsummaryrefslogtreecommitdiff
path: root/libgo/go
diff options
context:
space:
mode:
authorMarkus Böck <markus.boeck02@gmail.com>2020-10-27 09:53:08 -0400
committerDavid Malcolm <dmalcolm@redhat.com>2020-10-27 09:53:08 -0400
commit942086bf73ee2ba6cfd7fdacc552940048437a6e (patch)
treef5a6c0bf5eda3cb8b80fc5149387c4c6c4368d41 /libgo/go
parentbf1b5dae440de8884f66d0dbe9ad539102682e00 (diff)
downloadgcc-942086bf73ee2ba6cfd7fdacc552940048437a6e.zip
gcc-942086bf73ee2ba6cfd7fdacc552940048437a6e.tar.gz
gcc-942086bf73ee2ba6cfd7fdacc552940048437a6e.tar.bz2
analyzer: Change cast from long to intptr_t [PR96608]
Casting to intptr_t states the intent of an integer to pointer cast more clearly and ensures that the cast causes no loss of precision on any platforms. LLP64 platforms eg. have a long value of 4 bytes and pointer values of 8 bytes which may even cause compiler errors. gcc/analyzer/ChangeLog: PR analyzer/96608 * store.h (hash): Cast to intptr_t instead of long
Diffstat (limited to 'libgo/go')
0 files changed, 0 insertions, 0 deletions