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:
278b209
)
Ector software gradient: Fix cast from integer to pointer of wrong type.
author
Tom Hacohen
<tom@stosb.com>
Tue, 22 Sep 2015 14:45:04 +0000
(15:45 +0100)
committer
Tom Hacohen
<tom@stosb.com>
Tue, 22 Sep 2015 14:45:11 +0000
(15:45 +0100)
When casting pointer<->int, always use uintptr_t, not just int.
@fix
src/lib/ector/software/ector_software_gradient.c
patch
|
blob
|
history
diff --git
a/src/lib/ector/software/ector_software_gradient.c
b/src/lib/ector/software/ector_software_gradient.c
index
d6ad207
..
707c345
100644
(file)
--- a/
src/lib/ector/software/ector_software_gradient.c
+++ b/
src/lib/ector/software/ector_software_gradient.c
@@
-107,7
+107,7
@@
static void
loop_break(unsigned int *buffer, int length, int *lprealign, int *lby4 , int *lremaining)
{
int l1=0,l2=0,l3=0;
- while ((
in
t)buffer & 0xF)
+ while ((
uintptr_
t)buffer & 0xF)
buffer++ , l1++;
if(length <= l1)