summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLinux Build Service Account <lnxbuild@localhost>2022-12-29 12:38:25 -0800
committerLinux Build Service Account <lnxbuild@localhost>2022-12-29 12:38:25 -0800
commit7211ce6fef3b9d4fe1886d3dfda55f379b26e4ad (patch)
treee3de911b4f24755019e6bd2af4de823912fc0063
parent398142a11cfeecee6cf99f1b49a37be810838dfb (diff)
parentdbf678a61552ae94e104177853f32309eb9b5088 (diff)
Merge dbf678a61552ae94e104177853f32309eb9b5088 on remote branch
Change-Id: I1a8f94fa052868dd0326c48b298dd2220a6d262d
-rw-r--r--gralloc/gralloc_priv.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/gralloc/gralloc_priv.h b/gralloc/gralloc_priv.h
index 8750c3ca..7d9019db 100644
--- a/gralloc/gralloc_priv.h
+++ b/gralloc/gralloc_priv.h
@@ -73,7 +73,7 @@
#define USE_SYSTEM_HEAP_FOR_SENSORS GRALLOC_PROP("use_system_heap_for_sensors")
#define ROUND_UP_PAGESIZE(x) roundUpToPageSize(x)
-inline int roundUpToPageSize(int x) {
+inline size_t roundUpToPageSize(size_t x) {
return (x + (getpagesize() - 1)) & ~(getpagesize() - 1);
}