Re: [PATCH nd/struct-pathspec] declare 1-bit bitfields to be unsigned

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



2011/3/16 Jonathan Nieder <jrnieder@xxxxxxxxx>:
> As "gcc -pedantic" notices, a two's complement 1-bit signed integer
> cannot represent the value '1'.
>
> Âdir.c: In function 'init_pathspec':
> Âdir.c:1291:4: warning: overflow in implicit constant conversion [-Woverflow]

Thanks. I think I was aware of this but neglected because they are
used as booleans, 1 or -1 does not matter. Good fix anyway.
-- 
Duy
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]