diff options
author | Nick Mathewson <nickm@torproject.org> | 2003-08-12 08:18:13 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2003-08-12 08:18:13 +0000 |
commit | bbd4032fc14fb23edf7633382ed26788523ac728 (patch) | |
tree | b750c6470d44414897d7a977ed14c7f6ba809d6f /src/common/aes.c | |
parent | 25c9c837eb6fde0e7a6ef84b76602450e5672d53 (diff) | |
download | tor-bbd4032fc14fb23edf7633382ed26788523ac728.tar.gz tor-bbd4032fc14fb23edf7633382ed26788523ac728.zip |
Make windows happier still
svn:r392
Diffstat (limited to 'src/common/aes.c')
-rw-r--r-- | src/common/aes.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/common/aes.c b/src/common/aes.c index 037d7b3061..590d304837 100644 --- a/src/common/aes.c +++ b/src/common/aes.c @@ -122,9 +122,9 @@ aes_get_counter(aes_cnt_cipher_t *cipher) void aes_set_counter(aes_cnt_cipher_t *cipher, u64 counter) { - cipher->pos = counter & 0x0f; - cipher->counter0 = (counter >> 4) & 0xffffffff; - cipher->counter1 = (counter >> 36); + cipher->pos = (u8)(counter & 0x0f); + cipher->counter0 = (u32) ((counter >> 4) & 0xffffffff); + cipher->counter1 = (u32) (counter >> 36); _aes_fill_buf(cipher); } |