projects
/
platform
/
upstream
/
VK-GL-CTS.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
98faf68
)
Fix deUint64 -> size_t warning in deSha1
author
Pyry Haulos
<phaulos@google.com>
Wed, 10 Aug 2016 17:18:02 +0000
(10:18 -0700)
committer
Pyry Haulos
<phaulos@google.com>
Wed, 10 Aug 2016 17:23:57 +0000
(10:23 -0700)
Change-Id: Iadef8102281454601a39f2b39d5086f2b3e42802
framework/delibs/debase/deSha1.c
patch
|
blob
|
history
diff --git
a/framework/delibs/debase/deSha1.c
b/framework/delibs/debase/deSha1.c
index
ce8a881
..
ad7e8c1
100644
(file)
--- a/
framework/delibs/debase/deSha1.c
+++ b/
framework/delibs/debase/deSha1.c
@@
-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;