From 5e06c4ee327b848f59578bc7d838cf34188ff6fd Mon Sep 17 00:00:00 2001 From: Nick Mathewson Date: Tue, 18 Dec 2012 14:45:12 -0500 Subject: When building with MSVC, call every enum bitfield unsigned Fixes bug 7305. --- src/common/crypto.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/common/crypto.c') 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 algorithm. */ - 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. -- cgit v1.2.3-54-g00ecf