Eliminate bitfield enum members.
TRAC #23653
Signed-off-by: Shannon Woods
Signed-off-by: Geoff Lang
Author: Nicolas Capens
diff --git a/src/compiler/Intermediate.cpp b/src/compiler/Intermediate.cpp
index 21098f0..a25fc08 100644
--- a/src/compiler/Intermediate.cpp
+++ b/src/compiler/Intermediate.cpp
@@ -1262,12 +1262,12 @@
return 0;
}
- const int leftCols = getCols();
- const int leftRows = getRows();
- const int rightCols = constantNode->getType().getCols();
- const int rightRows = constantNode->getType().getRows();
- const int resultCols = rightCols;
- const int resultRows = leftRows;
+ const char leftCols = getCols();
+ const char leftRows = getRows();
+ const char rightCols = constantNode->getType().getCols();
+ const char rightRows = constantNode->getType().getRows();
+ const char resultCols = rightCols;
+ const char resultRows = leftRows;
tempConstArray = new ConstantUnion[resultCols*resultRows];
for (int row = 0; row < resultRows; row++)
@@ -1347,8 +1347,8 @@
return 0;
}
- const int matrixCols = getCols();
- const int matrixRows = getRows();
+ const char matrixCols = getCols();
+ const char matrixRows = getRows();
tempConstArray = new ConstantUnion[matrixRows];
@@ -1378,8 +1378,8 @@
return 0;
}
- const int matrixCols = constantNode->getType().getCols();
- const int matrixRows = constantNode->getType().getRows();
+ const char matrixCols = constantNode->getType().getCols();
+ const char matrixRows = constantNode->getType().getRows();
tempConstArray = new ConstantUnion[matrixCols];