* grub-core/net/dns.c (hash): Use unsigned arithmetic.
This commit is contained in:
parent
c64577a554
commit
40f290606d
2 changed files with 5 additions and 1 deletions
|
@ -1,3 +1,7 @@
|
|||
2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
|
||||
|
||||
* grub-core/net/dns.c (hash): Use unsigned arithmetic.
|
||||
|
||||
2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
|
||||
|
||||
* grub-core/io/gzio.c (test_zlib_header): Use undigned modulo rather
|
||||
|
|
|
@ -114,7 +114,7 @@ struct recv_data
|
|||
static inline int
|
||||
hash (const char *str)
|
||||
{
|
||||
int v = 0, xn = 1;
|
||||
unsigned v = 0, xn = 1;
|
||||
const char *ptr;
|
||||
for (ptr = str; *ptr; )
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue