From: SooChan Lim Date: Wed, 17 Dec 2014 05:47:49 +0000 (+0900) Subject: fix -Werror=int-to-pointer-cast, -Werror=pointer-to-int-cast error at 64bits system X-Git-Tag: submit/tizen/20151209.095229~15 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=9503dccaab4d53a5a2fd473c3a2f918593b20bb5;p=platform%2Fadaptation%2Fsamsung_exynos%2Flibtbm-exynos.git fix -Werror=int-to-pointer-cast, -Werror=pointer-to-int-cast error at 64bits system Change-Id: Ib4ae382e5e34c700d13568c2080c331304881fc1 --- diff --git a/packaging/libtbm-exynos4412.spec b/packaging/libtbm-exynos4412.spec index 5e7b391..4142fee 100644 --- a/packaging/libtbm-exynos4412.spec +++ b/packaging/libtbm-exynos4412.spec @@ -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 diff --git a/src/tbm_bufmgr_exynos4412.c b/src/tbm_bufmgr_exynos4412.c index 24214c2..cd6b28d 100644 --- a/src/tbm_bufmgr_exynos4412.c +++ b/src/tbm_bufmgr_exynos4412.c @@ -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; }