Loading libs/ui/include/ui/Rect.h +3 −0 Original line number Diff line number Diff line Loading @@ -86,15 +86,18 @@ public: } // rectangle's width __attribute__((no_sanitize("signed-integer-overflow"))) inline int32_t getWidth() const { return right - left; } // rectangle's height __attribute__((no_sanitize("signed-integer-overflow"))) inline int32_t getHeight() const { return bottom - top; } __attribute__((no_sanitize("signed-integer-overflow"))) inline Rect getBounds() const { return Rect(right - left, bottom - top); } Loading Loading
libs/ui/include/ui/Rect.h +3 −0 Original line number Diff line number Diff line Loading @@ -86,15 +86,18 @@ public: } // rectangle's width __attribute__((no_sanitize("signed-integer-overflow"))) inline int32_t getWidth() const { return right - left; } // rectangle's height __attribute__((no_sanitize("signed-integer-overflow"))) inline int32_t getHeight() const { return bottom - top; } __attribute__((no_sanitize("signed-integer-overflow"))) inline Rect getBounds() const { return Rect(right - left, bottom - top); } Loading