X-Git-Url: https://git.saurik.com/apple/security.git/blobdiff_plain/b1ab9ed8d0e0f1c3b66d7daa8fd5564444c56195..420ff9d9379a8d93f2c90f026a797bdea1eb4517:/libsecurity_utilities/lib/hashing.h diff --git a/libsecurity_utilities/lib/hashing.h b/libsecurity_utilities/lib/hashing.h index da3780a2..e931bd56 100644 --- a/libsecurity_utilities/lib/hashing.h +++ b/libsecurity_utilities/lib/hashing.h @@ -175,7 +175,7 @@ class SHA1 : public CC_SHA1_CTX, public Hash { public: SHA1() { CC_SHA1_Init(this); } void update(const void *data, size_t length) - { CC_SHA1_Update(this, data, length); } + { CC_SHA1_Update(this, data, (CC_LONG)length); } void finish(Byte *digest) { CC_SHA1_Final(digest, this); } using Hash::finish; };