using limits.h cbe5e88e
Anselm R Garbe · 2008-03-25 10:18 1 file(s) · +3 −2
dmenu.c +3 −2
1 1
/* See LICENSE file for copyright and license details. */
2 2
#include <ctype.h>
3 +
#include <limits.h>
3 4
#include <locale.h>
4 5
#include <stdarg.h>
5 6
#include <stdlib.h>
629 630
	mw = w ? w : DisplayWidth(dpy, screen);
630 631
	mh = dc.font.height + 2;
631 632
	if(y < 0) {
632 -
		if(y == ((~(unsigned int)0)/2)+1)
633 +
		if(y == INT_MIN)
633 634
			y = DisplayHeight(dpy, screen) - mh;
634 635
		else
635 636
			y = (-1 * y) - mh;
709 710
		else if(!strcmp(argv[i], "-y")) {
710 711
			if(++i < argc)
711 712
				if(!strcmp(argv[i], "-0"))
712 -
					y = ((~(unsigned int)0)/2)+1;
713 +
					y = INT_MIN;
713 714
				else
714 715
					y = atoi(argv[i]);
715 716
		}