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/Resources.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/Resources.c')
-rw-r--r-- | src/Resources.c | 2 |
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", |