about summary refs log tree commit diff
path: root/include/android-ashmem.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/android-ashmem.h')
-rwxr-xr-x[-rw-r--r--]include/android-ashmem.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/android-ashmem.h b/include/android-ashmem.h
index 984df4d4..2d515cc5 100644..100755
--- a/include/android-ashmem.h
+++ b/include/android-ashmem.h
@@ -52,7 +52,7 @@ static inline int shmctl(int __shmid, int __cmd, struct shmid_ds *__buf) {
   if (__cmd == IPC_RMID) {
 
     int               length = ioctl(__shmid, ASHMEM_GET_SIZE, NULL);
-    struct ashmem_pin pin = {0, length};
+    struct ashmem_pin pin = {0, (unsigned int)length};
     ret = ioctl(__shmid, ASHMEM_UNPIN, &pin);
     close(__shmid);