copybit: Fix type conversion error for GCC 4.7

GCC 4.7 has stricter type conversion rules in copybit.cpp

Change-Id: I7f8572e2d9416ccb2ba17e707c7f75a2e69d69cf
This commit is contained in:
Dhivya Subramanian 2013-06-21 21:44:15 +00:00 committed by followmsi
parent 6dfb4c8795
commit b76604250c
1 changed files with 3 additions and 3 deletions

View File

@ -450,7 +450,7 @@ static int stretch_copybit(
}
}
const uint32_t maxCount = sizeof(list.req)/sizeof(list.req[0]);
const struct copybit_rect_t bounds = { 0, 0, dst->w, dst->h };
const struct copybit_rect_t bounds = { 0, 0, (int)dst->w, (int)dst->h };
struct copybit_rect_t clip;
list.count = 0;
status = 0;
@ -499,8 +499,8 @@ static int blit_copybit(
struct copybit_image_t const *src,
struct copybit_region_t const *region)
{
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 };
return stretch_copybit(dev, dst, src, &dr, &sr, region);
}