Remove unsigned type from 'mask'
commite2d8cbe238d54ce2242be475adfdf62f2637d107
authorCarlos R. Mafra <crmafra@gmail.com>
Tue, 18 Aug 2009 14:28:43 +0000 (18 16:28 +0200)
committerCarlos R. Mafra <crmafra@gmail.com>
Tue, 18 Aug 2009 14:28:43 +0000 (18 16:28 +0200)
tree321c6fe760b2a019cb7c7f94af947616debae01a
parentcb31fd374c66261d0499e08df57874c6e49c234f
Remove unsigned type from 'mask'

    gcc-4.3.2 warns:

    defaults.c: In function 'getModMask':
    defaults.c:2586: warning: comparison of unsigned expression < 0 is always false

    The line in question is

        if (mask < 0)

    and 'mask' is the return of wXModifierFromKey() which is an 'int' and can
    indeed return a negative value (see src/xmodifier.c), so let 'mask' be
    an 'int' too.
src/defaults.c