Skip to content

Commit 14efcce

Browse files
committed
minor
1 parent 016499f commit 14efcce

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

wled00/FX.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5175,7 +5175,7 @@ uint16_t mode_2Dgameoflife(void) { // Written by Ewoud Wijma, inspired by https:
51755175

51765176
const uint16_t cols = SEGMENT.virtualWidth();
51775177
const uint16_t rows = SEGMENT.virtualHeight();
5178-
const size_t dataSize = (SEGMENT.length() / 8) + ((SEGMENT.length() % 8 != 0) ? 1 : 0); // add one byte when extra bits needed (length not a multiple of 8)
5178+
const size_t dataSize = (SEGMENT.length() / 8) + (((SEGMENT.length() % 8) != 0) ? 1 : 0); // add one byte when extra bits needed (length not a multiple of 8)
51795179
const size_t totalSize = dataSize*2 + sizeof(gameOfLife);
51805180

51815181
if (!SEGENV.allocateData(totalSize)) return mode_static(); //allocation failed

0 commit comments

Comments
 (0)