We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 38927be commit b031d45Copy full SHA for b031d45
src/fsort.c
@@ -44,8 +44,8 @@ static void dradix_r( // single-threaded recursive worker
44
}
45
46
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
+ uint64_t tmp = counts[i];
+ if (tmp) { // don't cumulate through 0s, important below to save a wasteful memset to zero
49
counts[i] = cumSum;
50
cumSum += tmp;
51
0 commit comments