Browse Source

[core] perf: small improvement buffer_string_space

personal/stbuehler/fix-fdevent
Glenn Strauss 4 years ago
parent
commit
ac41c17694
  1. 2
      src/buffer.h

2
src/buffer.h

@ -201,7 +201,7 @@ static inline size_t buffer_string_length(const buffer *b) {
}
static inline size_t buffer_string_space(const buffer *b) {
return NULL != b && b->size ? b->size - b->used - (0 == b->used) : 0;
return NULL != b && b->size ? b->size - (b->used | (0 == b->used)) : 0;
}
static inline void buffer_append_string_buffer(buffer *b, const buffer *src) {

Loading…
Cancel
Save