We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 63f4ee2 commit f77f19aCopy full SHA for f77f19a
src/log.cpp
@@ -347,13 +347,10 @@ void StringBuffer::push_back(char c)
347
flush(std::string(buffer, buffer_index));
348
buffer_index = 0;
349
} else {
350
- int index = buffer_index;
351
- buffer[index++] = c;
352
- if (index >= BUFFER_LENGTH) {
+ buffer[buffer_index++] = c;
+ if (buffer_index >= BUFFER_LENGTH) {
353
354
355
- } else {
356
- buffer_index = index;
357
}
358
359
0 commit comments