diff options
author | Daniel Stenberg <daniel@haxx.se> | 2007-07-14 13:14:58 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2007-07-14 13:14:58 +0000 |
commit | ad734e7b2d9b45fbfa8d9ebc83828f12c59399e3 (patch) | |
tree | ddbc6eda1502fcd8b0903155b573a669e9a6def2 | |
parent | 278e8f3926664db7233113cd43bba2a3f9d9b1af (diff) | |
download | c-ares-ad734e7b2d9b45fbfa8d9ebc83828f12c59399e3.tar.gz c-ares-ad734e7b2d9b45fbfa8d9ebc83828f12c59399e3.tar.bz2 c-ares-ad734e7b2d9b45fbfa8d9ebc83828f12c59399e3.zip |
Brad House's fix to hish a win32 compiler warning
-rw-r--r-- | ares_init.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ares_init.c b/ares_init.c index bc6a0ea..06dbb6c 100644 --- a/ares_init.c +++ b/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; |