Skip to content

Commit fc37456

Browse files
authored
Merge pull request #1034 from NeroBurner/twos_comparison_warning
Twos: fix warning about extra paranthesis
2 parents 76b7436 + 5171689 commit fc37456

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/displayapp/screens/Twos.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ bool Twos::placeNewTile() {
130130
}
131131

132132
bool Twos::tryMerge(TwosTile grid[][4], int& newRow, int& newCol, int oldRow, int oldCol) {
133-
if ((grid[newRow][newCol].value == grid[oldRow][oldCol].value)) {
133+
if (grid[newRow][newCol].value == grid[oldRow][oldCol].value) {
134134
if ((newCol != oldCol) || (newRow != oldRow)) {
135135
if (!grid[newRow][newCol].merged) {
136136
unsigned int newVal = grid[oldRow][oldCol].value *= 2;

0 commit comments

Comments
 (0)