summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorThomas E. Dickey <dickey@invisible-island.net>2020-02-05 04:37:37 -0500
committerThomas E. Dickey <dickey@invisible-island.net>2020-02-05 04:39:37 -0500
commit32fb9ec3b60d0262d65829ad0fc1463464648c4b (patch)
tree3d4b91eff31242329adb0a541d01dd94def74541 /src
parent15a6234f9bee37d3c25bb21ce66db5846e082563 (diff)
_XtCalloc actually uses a Cardinal, not size_t
Diffstat (limited to 'src')
-rw-r--r--src/Varargs.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Varargs.c b/src/Varargs.c
index cde629a..3da0556 100644
--- a/src/Varargs.c
+++ b/src/Varargs.c
@@ -356,7 +356,7 @@ _XtVaToArgList(Widget widget,
if (max_count == 0)
return;
- args = (ArgList)__XtCalloc((size_t)(max_count * 2), sizeof(Arg));
+ args = (ArgList)__XtCalloc((Cardinal)(max_count * 2), sizeof(Arg));
if (!args)
return;
@@ -492,7 +492,7 @@ _XtVaToTypedArgList(va_list var,
return;
args = (XtTypedArgList)
- __XtCalloc((size_t) max_count , sizeof(XtTypedArg));
+ __XtCalloc((Cardinal) max_count , sizeof(XtTypedArg));
if (!args)
return;