summaryrefslogtreecommitdiffstats
path: root/mdk-stage1/newt/grid.c
diff options
context:
space:
mode:
Diffstat (limited to 'mdk-stage1/newt/grid.c')
-rw-r--r--mdk-stage1/newt/grid.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mdk-stage1/newt/grid.c b/mdk-stage1/newt/grid.c
index 433011396..37d2b2e74 100644
--- a/mdk-stage1/newt/grid.c
+++ b/mdk-stage1/newt/grid.c
@@ -244,7 +244,7 @@ void newtGridWrappedWindow(newtGrid grid, char * title) {
int width, height, offset = 0;
newtGridGetSize(grid, &width, &height);
- if (width < strlen(title) + 2) {
+ if ((size_t)width < strlen(title) + 2) {
offset = ((strlen(title) + 2) - width) / 2;
width = strlen(title) + 2;
}