summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNaseer Ahmen <naseer@codeaurora.org>2016-09-24 16:26:31 -0300
committerKostas Tziridis <MrKostoulhs@gmail.com>2016-09-30 14:21:15 -0700
commit2290eb44470d74d5e23dd83ca381611858a0d264 (patch)
tree4ce1d7652e44eb75d7bfb1c54f821f174532e277
parent474ccca21d4e47a2de4b25ec78ae567c9bea298b (diff)
downloadhardware_qcom_display-cm-14.0.tar.gz
hardware_qcom_display-cm-14.0.tar.bz2
hardware_qcom_display-cm-14.0.zip
msm8960: copybit: Fix type conversion error for GCC 4.7cm-14.0
GCC 4.7 has stricter type conversion rules Change-Id: I699cfe1ceafb5728fb8e6f34f7b1996d3c812e7e
-rw-r--r--msm8960/libcopybit/copybit_c2d.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/msm8960/libcopybit/copybit_c2d.cpp b/msm8960/libcopybit/copybit_c2d.cpp
index 882a6529d..020fec68d 100644
--- a/msm8960/libcopybit/copybit_c2d.cpp
+++ b/msm8960/libcopybit/copybit_c2d.cpp
@@ -1387,8 +1387,8 @@ static int blit_copybit(
{
int status = COPYBIT_SUCCESS;
struct copybit_context_t* ctx = (struct copybit_context_t*)dev;
- struct copybit_rect_t dr = { 0, 0, dst->w, dst->h };
- struct copybit_rect_t sr = { 0, 0, src->w, src->h };
+ struct copybit_rect_t dr = { 0, 0, (int)dst->w, (int)dst->h };
+ struct copybit_rect_t sr = { 0, 0, (int)src->w, (int)src->h };
pthread_mutex_lock(&ctx->wait_cleanup_lock);
status = stretch_copybit_internal(dev, dst, src, &dr, &sr, region, false);
pthread_mutex_unlock(&ctx->wait_cleanup_lock);