Change-Id: Ia3fe8da45a24c446a689698018032efe09a19529
for (int faceNdx = 0; faceNdx < 6; ++faceNdx)
{
- const bool isPossible = faceBitmap & (1U << faceNdx);
+ const bool isPossible = ((faceBitmap & (1U << faceNdx)) != 0);
if (!isPossible)
{
{
const int faceEdge = adjacentEdges[faceNdx][cornerEdges[edgeNdx]];
- bool isFlipped = (adjacentEdgeDirs[faceNdx][cornerEdges[edgeNdx]]);
+ bool isFlipped = (adjacentEdgeDirs[faceNdx][cornerEdges[edgeNdx]] == -1);
if ((cornerEdges[edgeNdx] > 1) != (faceEdge > 1))
{