projects
/
platform
/
upstream
/
efl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d94120a
)
eina_thread_queue: use Eina_Bool for one-bit bitfield
author
Stefan Schmidt
<stefan@osg.samsung.com>
Fri, 13 Nov 2015 12:30:42 +0000
(13:30 +0100)
committer
Stefan Schmidt
<stefan@osg.samsung.com>
Fri, 13 Nov 2015 12:31:34 +0000
(13:31 +0100)
Make sure we are using a unsigned var here. Best go with a Eina_Bool directly.
src/lib/eina/eina_thread_queue.c
patch
|
blob
|
history
diff --git
a/src/lib/eina/eina_thread_queue.c
b/src/lib/eina/eina_thread_queue.c
index
29a79b2
..
3a012ea
100644
(file)
--- a/
src/lib/eina/eina_thread_queue.c
+++ b/
src/lib/eina/eina_thread_queue.c
@@
-59,7
+59,7
@@
struct _Eina_Thread_Queue_Msg_Block
int size; // the total allocated bytes of data[]
int first; // the byte pos of the first msg
int last; // the byte pos just after the last msg
-
int
full : 1; // is this block full yet?
+
Eina_Bool
full : 1; // is this block full yet?
Eina_Thread_Queue_Msg data[1]; // data in memory beyond struct end
};