]> git.saurik.com Git - apple/security.git/blobdiff - libsecurityd/lib/SharedMemoryClient.cpp
Security-55471.14.8.tar.gz
[apple/security.git] / libsecurityd / lib / SharedMemoryClient.cpp
index 2f1ada17467f0e1ba6a9355185ac2a227f173827..923767dc6c8a7253ffe6006828164e0f222cb204 100644 (file)
@@ -98,7 +98,7 @@ void SharedMemoryClient::ReadData (void* buffer, SegmentOffsetType length)
 
        u_int8_t* bptr = (u_int8_t*) buffer;
 
-       SegmentOffsetType bytesToEnd = mDataMax - mDataPtr;
+       SegmentOffsetType bytesToEnd = (SegmentOffsetType)(mDataMax - mDataPtr);
        
        // figure out how many bytes we can read
        SegmentOffsetType bytesToRead = (length <= bytesToEnd) ? length : bytesToEnd;