Be explicit when using bool as integral value

Change-Id: I3a6b9df9b1b6c48d5db506942d651f66cefdaa18