GH-130415: Narrow int to 0 based on boolean tests
#130772
Merged
int to 0 based on boolean tests
#130772