Verified Commit 32fb9ec3 authored by Thomas E. Dickey's avatar Thomas E. Dickey
Browse files

_XtCalloc actually uses a Cardinal, not size_t

parent 15a6234f
......@@ -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;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment