We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 1e6251e + 675c972 commit ac82adbCopy full SHA for ac82adb
Adafruit_GFX.cpp
@@ -1588,8 +1588,8 @@ void Adafruit_GFX_Button::drawButton(boolean inverted) {
1588
*/
1589
/**************************************************************************/
1590
boolean Adafruit_GFX_Button::contains(int16_t x, int16_t y) {
1591
- return ((x >= _x1) && (x < (_x1 + _w)) &&
1592
- (y >= _y1) && (y < (_y1 + _h)));
+ return ((x >= _x1) && (x < (int16_t) (_x1 + _w)) &&
+ (y >= _y1) && (y < (int16_t) (_y1 + _h)));
1593
}
1594
1595
0 commit comments