msm8960: copybit: Fix type conversion error for GCC 4.7

GCC 4.7 has stricter type conversion rules

Change-Id: I699cfe1ceafb5728fb8e6f34f7b1996d3c812e7e
This commit is contained in:
Naseer Ahmen 2016-09-24 16:26:31 -03:00 committed by followmsi
parent 958f1d1c1c
commit ec86d06700
1 changed files with 2 additions and 2 deletions

View File

@ -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);