summaryrefslogtreecommitdiff
path: root/src/VarGet.c
diff options
context:
space:
mode:
authorThomas E. Dickey <dickey@invisible-island.net>2019-05-06 05:16:24 -0400
committerThomas E. Dickey <dickey@invisible-island.net>2019-05-06 18:03:53 -0400
commit9112c3c104f0b3ec45ae776279e276034bc7dcc5 (patch)
tree55b4ba329cbaecaadb0093132f1b6c01cf8bb9b4 /src/VarGet.c
parent37dce673d841e7df75091a3b31828431e71bd78f (diff)
fixes for gcc warnings, no object-change
Signed-off-by: Thomas E. Dickey <dickey@invisible-island.net>
Diffstat (limited to 'src/VarGet.c')
-rw-r--r--src/VarGet.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/VarGet.c b/src/VarGet.c
index ce66e6f..1ac24cd 100644
--- a/src/VarGet.c
+++ b/src/VarGet.c
@@ -161,7 +161,7 @@ GetTypedArg(
from_val.size = from_size;
from_val.addr = (XPointer)value;
to_val.addr = (XPointer)typed_arg->value;
- to_val.size = typed_arg->size;
+ to_val.size = (unsigned) typed_arg->size;
if (!XtConvertAndStore(widget, from_type, &from_val,
typed_arg->type, &to_val)) {
@@ -234,7 +234,7 @@ XtVaGetValues(Widget widget, ...)
_XtCountVaList(var, &total_count, &typed_count);
if (total_count != typed_count) {
- args = (ArgList)__XtMalloc((unsigned)((total_count - typed_count)
+ args = (ArgList)__XtMalloc((unsigned)((size_t)(total_count - typed_count)
* sizeof(Arg)));
}
else args = NULL; /* for lint; really unused */
@@ -272,7 +272,7 @@ XtVaGetValues(Widget widget, ...)
XtFree((XtPointer)resources);
if (total_count != typed_count) {
- XtGetValues(widget, args, count);
+ XtGetValues(widget, args, (Cardinal) count);
XtFree((XtPointer)args);
}
UNLOCK_APP(app);