From dd3e028d2a1bc5daf87865ca1e5e923000186af8 Mon Sep 17 00:00:00 2001 From: Alex Richardson Date: Wed, 16 Jun 2021 14:33:31 +0100 Subject: Cast via intptr_t when converting integers to pointers I found these by compiling libXt with the CHERI Clang compiler, as it warns about conversions from integer to pointer that do not use intptr_t. Signed-off-by: Alex Richardson --- src/Convert.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/Convert.c') diff --git a/src/Convert.c b/src/Convert.c index 9b2d465..440d624 100644 --- a/src/Convert.c +++ b/src/Convert.c @@ -608,8 +608,8 @@ ComputeArgs(Widget widget, /* Convert in place for next usage */ convert_args[i].address_mode = XtResourceQuark; convert_args[i].address_id = - (XtPointer) (long) XrmStringToQuark((String) convert_args[i]. - address_id); + (XtPointer) (XtIntPtr) XrmStringToQuark((String) convert_args[i]. + address_id); /* Fall through */ case XtResourceQuark: -- cgit v1.2.3