aboutsummaryrefslogtreecommitdiff
path: root/libXaw/src/Label.c
diff options
context:
space:
mode:
Diffstat (limited to 'libXaw/src/Label.c')
-rw-r--r--libXaw/src/Label.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libXaw/src/Label.c b/libXaw/src/Label.c
index 0a4c6ea2a..a2af5bd07 100644
--- a/libXaw/src/Label.c
+++ b/libXaw/src/Label.c
@@ -674,7 +674,7 @@ _Reposition(LabelWidget lw, unsigned int width, unsigned int height,
*dx = newPos - lw->label.label_x;
lw->label.label_x = newPos;
- newPos = (height - lw->label.label_height) >> 1;
+ newPos = ((int)(height - lw->label.label_height)) >> 1;
*dy = newPos - lw->label.label_y;
lw->label.label_y = newPos;
}