summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeremy Huddleston <jeremyhu@apple.com>2011-10-02 13:35:26 -0700
committerJeremy Huddleston <jeremyhu@apple.com>2011-10-02 13:36:18 -0700
commit6c0b44caa9b424c7e05327e8ddc9273b87a0f81f (patch)
tree8e1e1c4711c0be221065fc5ae08f50ea0e2f71e1
parent2c29b8b71575d73db6b9542b24fa3312a2cf2f86 (diff)
LP64 fix for TypedArgToArg()
https://bugs.freedesktop.org/show_bug.cgi?id=12662 Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com>
-rw-r--r--src/Varargs.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/Varargs.c b/src/Varargs.c
index 6c9f9ee..13bf86d 100644
--- a/src/Varargs.c
+++ b/src/Varargs.c
@@ -234,6 +234,8 @@ TypedArgToArg(
else {
if (to_val.size == sizeof(long))
arg_return->value = (XtArgVal) *(long *)to_val.addr;
+ else if (to_val.size == sizeof(int))
+ arg_return->value = (XtArgVal) *(int *)to_val.addr;
else if (to_val.size == sizeof(short))
arg_return->value = (XtArgVal) *(short *)to_val.addr;
else if (to_val.size == sizeof(char))