[COMMITTED] a68: cast PTR_SIZE to int to avoid signed/unsigned comparisons

Jose E. Marchesi jemarch@gnu.org
Sun Nov 23 11:06:43 GMT 2025


---
 gcc/algol68/a68-imports.cc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gcc/algol68/a68-imports.cc b/gcc/algol68/a68-imports.cc
index fd1414be4c8..d03b816e3a8 100644
--- a/gcc/algol68/a68-imports.cc
+++ b/gcc/algol68/a68-imports.cc
@@ -370,7 +370,7 @@ a68_get_packet_exports (const std::string &filename,
 
 /* The size of the target's pointer type, in bytes.  */
 #ifndef PTR_SIZE
-#define PTR_SIZE (POINTER_SIZE / BITS_PER_UNIT)
+#define PTR_SIZE ((int)(POINTER_SIZE / BITS_PER_UNIT))
 #endif
 
 /* Collection of decoding helper macros, to be exclusively used in the
-- 
2.30.2



More information about the Algol68 mailing list