Brad House's fix to hish a win32 compiler warning

This commit is contained in:
Daniel Stenberg 2007-07-14 13:14:58 +00:00
parent 7fc300d5dc
commit 1261c3feba
1 changed files with 2 additions and 1 deletions

View File

@ -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;