Merge "copybit: Fix type conversion error for GCC 4.7"
diff --git a/libcopybit/copybit.cpp b/libcopybit/copybit.cpp
index a3c93ba..23b336c 100644
--- a/libcopybit/copybit.cpp
+++ b/libcopybit/copybit.cpp
@@ -481,7 +481,7 @@
             }
         }
         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;
         status = 0;
         while ((status == 0) && region->next(region, &clip)) {
@@ -532,8 +532,8 @@
     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);
 }