summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas E. Dickey <dickey@invisible-island.net>2019-07-03 09:58:40 -0400
committerThomas E. Dickey <dickey@invisible-island.net>2019-07-04 13:08:32 -0400
commitd4db24bbb20434bee94d7c7df95bbd43c8d5ea7c (patch)
tree9c863e4916288f0e0afbf773e8946cfd18fcb257
parent9adace08e31dbebe6733c173e5c47157e1ce13bf (diff)
downloadxorg-lib-libXaw-d4db24bbb20434bee94d7c7df95bbd43c8d5ea7c.tar.gz
add casts to quiet gcc conversion-warnings, no object change
Signed-off-by: Thomas E. Dickey <dickey@invisible-island.net>
-rw-r--r--src/Porthole.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/Porthole.c b/src/Porthole.c
index 4842e70..c87be98 100644
--- a/src/Porthole.c
+++ b/src/Porthole.c
@@ -156,8 +156,8 @@ SendReport(PortholeWidget pw, unsigned int changed)
XawPannerReport prep;
prep.changed = changed;
- prep.slider_x = -XtX(child); /* porthole is "inner" */
- prep.slider_y = -XtY(child); /* child is outer since it is larger */
+ prep.slider_x = (Position)(-XtX(child)); /* porthole is "inner" */
+ prep.slider_y = (Position)(-XtY(child)); /* child is outer since it is larger */
prep.slider_width = XtWidth(pw);
prep.slider_height = XtHeight(pw);
prep.canvas_width = XtWidth(child);
@@ -199,8 +199,8 @@ layout_child(PortholeWidget pw, Widget child, XtWidgetGeometry *geomp,
* Make sure that the child is still on the screen. Note that this must
* be done *after* the size computation so that we know where to put it
*/
- minx = (Position)XtWidth(pw) - (Position)*widthp;
- miny = (Position)XtHeight(pw) - (Position)*heightp;
+ minx = (Position)(XtWidth(pw) - *widthp);
+ miny = (Position)(XtHeight(pw) - *heightp);
if (*xp < minx)
*xp = minx;