Skip to content

Commit b031d45

Browse files
committed
fix formatting warning
1 parent 38927be commit b031d45

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/fsort.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,8 @@ static void dradix_r( // single-threaded recursive worker
4444
}
4545

4646
for (uint64_t i = 0, cumSum = 0; cumSum < n; i++) { // cumSum<n better than i<width as may return early
47-
uint64_t tmp;
48-
if (tmp = counts[i]) { // don't cumulate through 0s, important below to save a wasteful memset to zero
47+
uint64_t tmp = counts[i];
48+
if (tmp) { // don't cumulate through 0s, important below to save a wasteful memset to zero
4949
counts[i] = cumSum;
5050
cumSum += tmp;
5151
}

0 commit comments

Comments
 (0)