/* See LICENSE file for copyright and license details. */
#include <ctype.h>
+#include <limits.h>
#include <locale.h>
#include <stdarg.h>
#include <stdlib.h>
mw = w ? w : DisplayWidth(dpy, screen);
mh = dc.font.height + 2;
if(y < 0) {
- if(y == ((~(unsigned int)0)/2)+1)
+ if(y == INT_MIN)
y = DisplayHeight(dpy, screen) - mh;
else
y = (-1 * y) - mh;
else if(!strcmp(argv[i], "-y")) {
if(++i < argc)
if(!strcmp(argv[i], "-0"))
- y = ((~(unsigned int)0)/2)+1;
+ y = INT_MIN;
else
y = atoi(argv[i]);
}