Re: [PATCH] [PR96608] analyzer: Change cast from long to intptr_t

2020-10-27 Thread David Malcolm via Gcc-patches
On Wed, 2020-09-30 at 09:43 +0200, Markus Böck wrote: > 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

[PATCH] [PR96608] analyzer: Change cast from long to intptr_t

2020-09-30 Thread Markus Böck via Gcc-patches
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. Fixes PR 96608 Would need t