summaryrefslogtreecommitdiff
path: root/src/Composite.c
diff options
context:
space:
mode:
authorThomas E. Dickey <dickey@invisible-island.net>2019-03-17 17:19:45 -0400
committerAlan Coopersmith <alan.coopersmith@oracle.com>2019-04-06 10:31:25 -0700
commitcf9e8c73c4ffa671d580938c9a84d6ef0bd2710d (patch)
tree21cd4cab8b92df9f9050ea8df40d9cc35bed451d /src/Composite.c
parentfb7e899e94dd402c868e8eb59ccf32284732f6ac (diff)
This cleans up the "easy" warning fixes which can be made using my
Regress script, comparing object-files before/after the edits: https://invisible-island.net/ansification/index.html https://invisible-island.net/scripts/readme.html The changes are casts, which quiet the gcc warnings about implicit conversion that my "gcc-normal" script would show. I avoided reformatting the code. The change reduces the number of gcc warnings from 769 to 163. Signed-off-by: Thomas E. Dickey <dickey@invisible-island.net>
Diffstat (limited to 'src/Composite.c')
-rw-r--r--src/Composite.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Composite.c b/src/Composite.c
index 29893d8..7b6982c 100644
--- a/src/Composite.c
+++ b/src/Composite.c
@@ -242,7 +242,7 @@ static void CompositeInsertChild(
cw->composite.num_slots += (cw->composite.num_slots / 2) + 2;
cw->composite.children = children =
(WidgetList) XtRealloc((XtPointer) children,
- (unsigned) (cw->composite.num_slots) * sizeof(Widget));
+ (Cardinal)((unsigned) (cw->composite.num_slots) * sizeof(Widget)));
}
/* Ripple children up one space from "position" */
for (i = cw->composite.num_children; i > position; i--) {