From d4db24bbb20434bee94d7c7df95bbd43c8d5ea7c Mon Sep 17 00:00:00 2001 From: "Thomas E. Dickey" Date: Wed, 3 Jul 2019 09:58:40 -0400 Subject: add casts to quiet gcc conversion-warnings, no object change Signed-off-by: Thomas E. Dickey --- src/Porthole.c | 8 ++++---- 1 file 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; -- cgit v1.2.1