Skip to content

Commit

Permalink
Corrected a spelling mistake
Browse files Browse the repository at this point in the history
  • Loading branch information
mridgers committed Jun 8, 2021
1 parent 386cf78 commit d0a6e87
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions clink/lua/src/io_api.cpp
Expand Up @@ -47,7 +47,7 @@ class handle_reader
unsigned int read(unsigned int size);

private:
bool aquire();
bool acquire();
static const int BUFFER_SIZE = 8192;
char* m_buffer = nullptr;
unsigned int m_buffer_size = 0;
Expand All @@ -66,7 +66,7 @@ bool handle_reader::get(unsigned int index, int& c)
{
index += m_cursor;
while (index >= m_data_size)
if (!aquire())
if (!acquire())
return false;

c = unsigned(m_buffer[index]);
Expand All @@ -91,14 +91,14 @@ void handle_reader::consume(unsigned int size)
unsigned int handle_reader::read(unsigned int size)
{
while (m_data_size - m_cursor < size)
if (!aquire())
if (!acquire())
break;

return m_data_size - m_cursor;
}

//------------------------------------------------------------------------------
bool handle_reader::aquire()
bool handle_reader::acquire()
{
if (!is_valid())
return false;
Expand Down

0 comments on commit d0a6e87

Please sign in to comment.