From: Daniel Stenberg Date: Sat, 14 Jul 2007 13:14:58 +0000 (+0000) Subject: Brad House's fix to hish a win32 compiler warning X-Git-Tag: curl-7_17_0-preldapfix~96 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1261c3febab5aaba3feeaba8e689d11880c38b0f;p=thirdparty%2Fcurl.git Brad House's fix to hish a win32 compiler warning --- diff --git a/ares/ares_init.c b/ares/ares_init.c index bc6a0ea6b7..06dbb6cfe2 100644 --- a/ares/ares_init.c +++ b/ares/ares_init.c @@ -1322,7 +1322,8 @@ static void init_id_key(rc4_key* key,int key_data_len) randomize_key(key->state,key_data_len); state = &key->state[0]; for(counter = 0; counter < 256; counter++) - state[counter] = counter; + /* unnecessary AND but it keeps some compilers happier */ + state[counter] = counter & 0xff; key->x = 0; key->y = 0; index1 = 0;