fix -Werror=int-to-pointer-cast, -Werror=pointer-to-int-cast error at 64bits system 46/52346/1
authorSooChan Lim <sc1.lim@samsung.com>
Wed, 17 Dec 2014 05:47:49 +0000 (14:47 +0900)
committerSooChan Lim <sc1.lim@samsung.com>
Mon, 23 Nov 2015 04:43:02 +0000 (13:43 +0900)
Change-Id: Ib4ae382e5e34c700d13568c2080c331304881fc1

packaging/libtbm-exynos4412.spec
src/tbm_bufmgr_exynos4412.c

index 5e7b391..4142fee 100644 (file)
@@ -1,6 +1,6 @@
 Name:           libtbm-exynos4412
 Version:        1.0.5
-Release:        1
+Release:        2
 License:        MIT
 Summary:        Tizen Buffer Manager - exynos4412 backend
 Group:          System/Libraries
index 24214c2..cd6b28d 100644 (file)
@@ -305,7 +305,7 @@ _exynos4412_bo_handle (tbm_bo_exynos4412 bo_exynos4412, int device)
                          getpid(), __FUNCTION__, __LINE__, bo_exynos4412->gem);
                 return (tbm_bo_handle) NULL;
             }
-            bo_exynos4412->pBase = (void*)((uint32_t)arg.mapped);
+            bo_exynos4412->pBase = (void*)((uint64_t)arg.mapped);
         }
 
         bo_handle.ptr = (void *)bo_exynos4412->pBase;
@@ -854,7 +854,7 @@ tbm_exynos4412_bo_export_fd (tbm_bo bo)
             TBM_EXYNOS4412_LOG ("[libtbm-exynos4412:%d] "
                      "error %s:%d Cannot dmabuf=%d\n",
                      getpid(), __FUNCTION__, __LINE__, bo_exynos4412->gem);
-            return (tbm_fd) NULL;
+            return (tbm_fd) 0;
         }
         bo_exynos4412->dmabuf = arg.fd;
     }