summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdrian Salido <salidoa@google.com>2016-10-20 19:35:55 -0700
committerAdrian Salido <salidoa@google.com>2016-10-20 19:49:19 -0700
commit6862df5491c082d667d4e21b749cfc9ff779306b (patch)
treeced3d40509524f57b5112ae1ab65017e9dbd9a16
parentfab5ea10b0e81e830c484e19b322a3c11fa9e9e6 (diff)
downloaddrm_hwcomposer-6862df5491c082d667d4e21b749cfc9ff779306b.tar.gz
drm_hwcomposer-6862df5491c082d667d4e21b749cfc9ff779306b.tar.xz
drm_hwcomposer: fix type size check for separate rects
Bug: 32218819 Change-Id: Ic8f2c5d078a5ee9a48862a8e8faca051f199b78e Signed-off-by: Adrian Salido <salidoa@google.com>
-rw-r--r--separate_rects.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/separate_rects.cpp b/separate_rects.cpp
index 3d76e53..9fd1ae4 100644
--- a/separate_rects.cpp
+++ b/separate_rects.cpp
@@ -85,7 +85,7 @@ void separate_rects(const std::vector<Rect<TNum>> &in,
// our output set of non-overlapping rectangles. Based of the algorithm found
// at: http://stackoverflow.com/a/2755498
- if (in.size() > IdSet<TNum>::max_elements) {
+ if (in.size() > IdSet<TId>::max_elements) {
return;
}