prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)