diff options
author | Alex Richardson <Alexander.Richardson@cl.cam.ac.uk> | 2021-06-16 14:33:31 +0100 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@oracle.com> | 2021-06-27 18:35:02 +0000 |
commit | dd3e028d2a1bc5daf87865ca1e5e923000186af8 (patch) | |
tree | 3d61848d2e92de694ca50addb1b6e1d6c3f0d1df /src/Convert.c | |
parent | 38e89c8582efc8cd1e49205b5d02a10511738120 (diff) |
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 <Alexander.Richardson@cl.cam.ac.uk>
Diffstat (limited to 'src/Convert.c')
-rw-r--r-- | src/Convert.c | 4 |
1 files changed, 2 insertions, 2 deletions
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: |