summaryrefslogtreecommitdiff
path: root/src/lib/ector/software/ector_software_gradient.c
diff options
context:
space:
mode:
authorTom Hacohen <tom@stosb.com>2015-09-22 15:45:04 +0100
committerTom Hacohen <tom@stosb.com>2015-09-22 15:45:11 +0100
commitbe87d3bf1df7c32378a23aba623b81610397feae (patch)
treed3d98984b6847a4cfa155f606d83de0c4066309f /src/lib/ector/software/ector_software_gradient.c
parent278b20954a7583d42bc93df0257cd84f0646932e (diff)
Ector software gradient: Fix cast from integer to pointer of wrong type.
When casting pointer<->int, always use uintptr_t, not just int. @fix
Diffstat (limited to 'src/lib/ector/software/ector_software_gradient.c')
-rw-r--r--src/lib/ector/software/ector_software_gradient.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/ector/software/ector_software_gradient.c b/src/lib/ector/software/ector_software_gradient.c
index d6ad207553..707c345312 100644
--- a/src/lib/ector/software/ector_software_gradient.c
+++ b/src/lib/ector/software/ector_software_gradient.c
@@ -107,7 +107,7 @@ static void
107loop_break(unsigned int *buffer, int length, int *lprealign, int *lby4 , int *lremaining) 107loop_break(unsigned int *buffer, int length, int *lprealign, int *lby4 , int *lremaining)
108{ 108{
109 int l1=0,l2=0,l3=0; 109 int l1=0,l2=0,l3=0;
110 while ((int)buffer & 0xF) 110 while ((uintptr_t)buffer & 0xF)
111 buffer++ , l1++; 111 buffer++ , l1++;
112 112
113 if(length <= l1) 113 if(length <= l1)