mirror of
https://github.com/google/pebble.git
synced 2025-05-21 10:55:04 +00:00
spelling: contiguous
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
This commit is contained in:
parent
74d9fc2ef5
commit
e3dd54fda9
2 changed files with 4 additions and 4 deletions
|
@ -143,8 +143,8 @@ bool circular_buffer_read_or_copy(const CircularBuffer* buffer, uint8_t **data_o
|
|||
if (buffer->data_length < length) {
|
||||
return false;
|
||||
}
|
||||
const uint16_t continguous_length = (buffer->buffer_size - buffer->read_index);
|
||||
const bool should_malloc_and_copy = (length > continguous_length);
|
||||
const uint16_t contiguous_length = (buffer->buffer_size - buffer->read_index);
|
||||
const bool should_malloc_and_copy = (length > contiguous_length);
|
||||
*caller_should_free = should_malloc_and_copy;
|
||||
if (should_malloc_and_copy) {
|
||||
*data_out = (uint8_t *) malloc_imp(length);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue