projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
686b018
)
mesa: Use STATIC_ASSERT whenever possible.
author
Jose Fonseca
<jfonseca@vmware.com>
Tue, 12 Apr 2016 06:35:08 +0000
(07:35 +0100)
committer
Jose Fonseca
<jfonseca@vmware.com>
Tue, 12 Apr 2016 15:56:15 +0000
(16:56 +0100)
Reviewed-by: Eric Engestrom <eric.engestrom@imgtec.com>
Reviewed-by: Roland Scheidegger <sroland@vmware.com>
src/mesa/main/imports.c
patch
|
blob
|
history
diff --git
a/src/mesa/main/imports.c
b/src/mesa/main/imports.c
index 14cd58870f70c8a30d2ae73eea7e894b84f7196b..fe54109322d2a4f284d199839e936a0474836525 100644
(file)
--- a/
src/mesa/main/imports.c
+++ b/
src/mesa/main/imports.c
@@
-262,7
+262,7
@@
ffsll(long long int val)
{
int bit;
-
assert
(sizeof(val) == 8);
+
STATIC_ASSERT
(sizeof(val) == 8);
bit = ffs((int) val);
if (bit != 0)