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 024d01aa8..664bbc6b5 100644
--- a/libXaw/src/Label.c
+++ b/libXaw/src/Label.c
@@ -616,7 +616,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;
}