* grub-core/net/dns.c (hash): Use unsigned arithmetic.

This commit is contained in:
Vladimir Serbinenko 2013-10-25 20:26:27 +02:00
parent c64577a554
commit 40f290606d
2 changed files with 5 additions and 1 deletions

View file

@ -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> 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
* grub-core/io/gzio.c (test_zlib_header): Use undigned modulo rather * grub-core/io/gzio.c (test_zlib_header): Use undigned modulo rather

View file

@ -114,7 +114,7 @@ struct recv_data
static inline int static inline int
hash (const char *str) hash (const char *str)
{ {
int v = 0, xn = 1; unsigned v = 0, xn = 1;
const char *ptr; const char *ptr;
for (ptr = str; *ptr; ) for (ptr = str; *ptr; )
{ {