X-Git-Url: https://git.saurik.com/apple/security.git/blobdiff_plain/b1ab9ed8d0e0f1c3b66d7daa8fd5564444c56195..e3d3b979fd185d8303f28a937baa53a187fb8c7d:/libsecurityd/lib/dictionary.cpp diff --git a/libsecurityd/lib/dictionary.cpp b/libsecurityd/lib/dictionary.cpp index bb15a65e..f79ea20e 100644 --- a/libsecurityd/lib/dictionary.cpp +++ b/libsecurityd/lib/dictionary.cpp @@ -88,7 +88,7 @@ NameValuePair::~NameValuePair () void NameValuePair::Export (CssmData &data) const { // export the data in the format name length data - uint32 outSize = 2 * sizeof (uint32) + mValue.length (); + size_t outSize = 2 * sizeof (uint32) + mValue.length (); unsigned char* d = (unsigned char*) malloc(outSize); unsigned char* finger = d; @@ -104,7 +104,7 @@ void NameValuePair::Export (CssmData &data) const // export the length finger += sizeof (uint32); - intBuffer = mValue.length (); + intBuffer = (uint32)mValue.length (); for (i = sizeof (uint32) - 1; i >= 0; --i) { finger[i] = intBuffer & 0xFF; @@ -129,7 +129,7 @@ NameValueDictionary::NameValueDictionary () NameValueDictionary::~NameValueDictionary () { // to prevent leaks, delete all members of the vector - int i = mVector.size (); + size_t i = mVector.size (); while (i > 0) { delete mVector[--i]; @@ -258,7 +258,7 @@ const NameValuePair* NameValueDictionary::FindByName (uint32 name) const int NameValueDictionary::CountElements () const { - return mVector.size (); + return (int)mVector.size (); }