RegionSupport: Fix PVS 338-346

Fix 'true / false' value is implicitly cast to the integer type.

Change-Id: I2f72fcd34d2d97d20e2a98ed5efe25919a485c9d
Reviewed-on: https://review.haiku-os.org/739
Reviewed-by: Jérôme Duval <jerome.duval@gmail.com>
This commit is contained in:
Murai Takashi 2018-11-27 20:41:15 +09:00 committed by Jérôme Duval
parent 3340ebea4c
commit f0a1a07c73
2 changed files with 3 additions and 3 deletions

View File

@ -65,7 +65,7 @@ class BRegion::Support {
static int XXorRegion(const BRegion* sra,
const BRegion* srb, BRegion* dr);
static int XPointInRegion(const BRegion* region,
static bool XPointInRegion(const BRegion* region,
int x, int y);
enum {

View File

@ -1542,7 +1542,7 @@ BRegion::Support::XXorRegion(const BRegion* sra, const BRegion* srb,
}
int
bool
BRegion::Support::XPointInRegion(
const BRegion* pRegion,
int x, int y)
@ -1570,7 +1570,7 @@ BRegion::Support::XRectInRegion(
register clipping_rect* pbox;
register clipping_rect* pboxEnd;
register const clipping_rect* prect = &rect;
int partIn, partOut;
bool partIn, partOut;
int rx = prect->left;
int ry = prect->top;