summaryrefslogtreecommitdiff
path: root/src/Resources.c
diff options
context:
space:
mode:
authorAlex Richardson <Alexander.Richardson@cl.cam.ac.uk>2021-06-16 14:33:31 +0100
committerAlan Coopersmith <alan.coopersmith@oracle.com>2021-06-27 18:35:02 +0000
commitdd3e028d2a1bc5daf87865ca1e5e923000186af8 (patch)
tree3d61848d2e92de694ca50addb1b6e1d6c3f0d1df /src/Resources.c
parent38e89c8582efc8cd1e49205b5d02a10511738120 (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/Resources.c')
-rw-r--r--src/Resources.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Resources.c b/src/Resources.c
index 4512517..932ba7d 100644
--- a/src/Resources.c
+++ b/src/Resources.c
@@ -336,7 +336,7 @@ BadSize(Cardinal size, XrmQuark name)
String params[2];
Cardinal num_params = 2;
- params[0] = (String) (long) size;
+ params[0] = (String) (XtIntPtr) size;
params[1] = XrmQuarkToString(name);
XtWarningMsg("invalidSizeOverride", "xtDependencies", XtCXtToolkitError,
"Representation size %d must match superclass's to override %s",