summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/XF86VMode.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/XF86VMode.c b/src/XF86VMode.c
index 00eeb26..1940e08 100644
--- a/src/XF86VMode.c
+++ b/src/XF86VMode.c
@@ -267,7 +267,7 @@ XF86VidModeGetModeLine(Display* dpy, int screen, int* dotclock,
}
if (modeline->privsize > 0) {
- if (modeline->privsize < (INT_MAX / sizeof(INT32)))
+ if ((unsigned) modeline->privsize < (INT_MAX / sizeof(INT32)))
modeline->private = Xcalloc(modeline->privsize, sizeof(INT32));
else
modeline->private = NULL;