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:
865f9aa
)
Fix shift-negative-value warning
author
Kalle Raita
<kraita@google.com>
Thu, 10 Dec 2015 21:25:25 +0000
(13:25 -0800)
committer
Dan Albert
<danalbert@google.com>
Mon, 11 Jan 2016 18:58:57 +0000
(10:58 -0800)
Change-Id: I4709933cc873ed34d3f67b2a258f542d56018428
(cherry picked from commit
801b508c8d5f464df5ae792d48909d2df8574141
)
framework/delibs/debase/deInt32.h
patch
|
blob
|
history
diff --git
a/framework/delibs/debase/deInt32.h
b/framework/delibs/debase/deInt32.h
index
1ec9a37
..
b16aa17
100644
(file)
--- a/
framework/delibs/debase/deInt32.h
+++ b/
framework/delibs/debase/deInt32.h
@@
-478,7
+478,7
@@
DE_INLINE deInt32 deInt32ModF (deInt32 n, deInt32 d)
DE_INLINE deBool deInt64InInt32Range (deInt64 x)
{
- return ((x >= (
-1ll<<31
)) && (x <= ((1ll<<31)-1)));
+ return ((x >= (
((deInt64)((deInt32)(-0x7FFFFFFF - 1)))
)) && (x <= ((1ll<<31)-1)));
}