analyzer: Change cast from long to intptr_t [PR96608]
authorMarkus Böck <markus.boeck02@gmail.com>
Tue, 27 Oct 2020 13:53:08 +0000 (09:53 -0400)
committerDavid Malcolm <dmalcolm@redhat.com>
Tue, 27 Oct 2020 13:53:08 +0000 (09:53 -0400)
commit942086bf73ee2ba6cfd7fdacc552940048437a6e
treef5a6c0bf5eda3cb8b80fc5149387c4c6c4368d41
parentbf1b5dae440de8884f66d0dbe9ad539102682e00
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
gcc/analyzer/store.h