diff options
author | Nick Mathewson <nickm@torproject.org> | 2012-12-18 14:45:12 -0500 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2013-01-16 22:29:39 -0500 |
commit | 5e06c4ee327b848f59578bc7d838cf34188ff6fd (patch) | |
tree | 8fdbf5a924438af68506ca8bdbe0697deca0ab1c /src/common/crypto.c | |
parent | 739e83ca694411c318d868e0838238b4e3d9b5eb (diff) | |
download | tor-5e06c4ee327b848f59578bc7d838cf34188ff6fd.tar.gz tor-5e06c4ee327b848f59578bc7d838cf34188ff6fd.zip |
When building with MSVC, call every enum bitfield unsigned
Fixes bug 7305.
Diffstat (limited to 'src/common/crypto.c')
-rw-r--r-- | src/common/crypto.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common/crypto.c b/src/common/crypto.c index 39f5a4a642..ed8d457d45 100644 --- a/src/common/crypto.c +++ b/src/common/crypto.c @@ -1505,7 +1505,7 @@ struct crypto_digest_t { SHA256_CTX sha2; /**< state for SHA256 */ } d; /**< State for the digest we're using. Only one member of the * union is usable, depending on the value of <b>algorithm</b>. */ - digest_algorithm_t algorithm : 8; /**< Which algorithm is in use? */ + ENUM_BF(digest_algorithm_t) algorithm : 8; /**< Which algorithm is in use? */ }; /** Allocate and return a new digest object to compute SHA1 digests. |