Fix deUint64 -> size_t warning in deSha1
authorPyry Haulos <phaulos@google.com>
Wed, 10 Aug 2016 17:18:02 +0000 (10:18 -0700)
committerPyry Haulos <phaulos@google.com>
Wed, 10 Aug 2016 17:23:57 +0000 (10:23 -0700)
Change-Id: Iadef8102281454601a39f2b39d5086f2b3e42802

framework/delibs/debase/deSha1.c

index ce8a881..ad7e8c1 100644 (file)
@@ -136,7 +136,7 @@ void deSha1Stream_process (deSha1Stream* stream, size_t size, const void* data_)
        {
                do
                {
-                       const size_t bitOffset = 8 * (4 - (1 + (stream->size % 4)));
+                       const size_t bitOffset = (size_t)(8 * (4 - (1 + (stream->size % 4))));
 
                        stream->data[(stream->size / 4) % 16] |= ((deUint32)data[bytesProcessed]) << (deUint32)bitOffset;