[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH] Silence compiler warnings with MinGW64
From: |
Patrice Dumas |
Subject: |
Re: [PATCH] Silence compiler warnings with MinGW64 |
Date: |
Wed, 5 Apr 2023 11:31:12 +0200 |
On Wed, Apr 05, 2023 at 11:47:08AM +0300, Eli Zaretskii wrote:
> Those are real bugs: we should cast to inptr_t instead of long.
We already do that in some code, but we immediatly cast to another type,
defined in perl, like
IV value = (IV) (intptr_t) k->value;
Is there a integer type we could cast to that represents integers that we
are sure makes sense to cast from intptr_t? For instance, is the
following correct, or should long be replaced by something else?
long max_columns = (long) (intptr_t) k->value;
I tried to lookup that information on the www, but could not find
anything definitive.
--
Pat
- [PATCH] Silence compiler warnings with MinGW64, Arash Esbati, 2023/04/05
- Re: [PATCH] Silence compiler warnings with MinGW64, Eli Zaretskii, 2023/04/05
- Re: [PATCH] Silence compiler warnings with MinGW64,
Patrice Dumas <=
- Re: [PATCH] Silence compiler warnings with MinGW64, Eli Zaretskii, 2023/04/05
- integer types, Gavin Smith, 2023/04/05
- Re: integer types, Eli Zaretskii, 2023/04/05
- Re: integer types, Gavin Smith, 2023/04/05
- Re: integer types, Eli Zaretskii, 2023/04/05
- Re: integer types, Gavin Smith, 2023/04/05
- Re: integer types, Andreas Schwab, 2023/04/05
Re: [PATCH] Silence compiler warnings with MinGW64, Gavin Smith, 2023/04/05