summaryrefslogtreecommitdiff
path: root/opengl/tests/gl_basic/gl_basic.cpp
diff options
context:
space:
mode:
authorIvan Lozano <ivanlozano@google.com>2017-12-14 13:27:10 -0800
committerIvan Lozano <ivanlozano@google.com>2017-12-14 18:25:59 -0800
commit1f58ac5324caee1665cce61a1679fa187c578b5b (patch)
tree872abdfc7709b0618adf090149164e6be0a17d76 /opengl/tests/gl_basic/gl_basic.cpp
parent95f40fb256d54f1b5d8e65bfad1735f61377a458 (diff)
Fix sanitizer in setViewportAndProjection.
On integer sanitized builds calculating b (and possibly t) throws a runtime error due to an unsigned integer overflow occuring. runtime error: unsigned integer overflow: 1024 - 1920 cannot be represented in type 'unsigned long' This changes the type of b (and others) to int32_t, which matches the types in Rect and can store the negative results above without overflowing. Bug: 30969751 Test: Compiles, surfaceflinger tests pass. Change-Id: Ifb45e3c7e14a2f782412e65d56e462e7df37faba
Diffstat (limited to 'opengl/tests/gl_basic/gl_basic.cpp')
0 files changed, 0 insertions, 0 deletions