Website Summary Files Commits Branches @commit @diff @stats
path: root / spasm / src / asm / lexer.re
diff options
context:
space:
mode:
1 files changed, 2 insertions, 2 deletions
-rw-r--r--spasm/src/asm/lexer.re4
diff --git a/spasm/src/asm/lexer.re b/spasm/src/asm/lexer.re
index bdf792d..7de620d 100644
--- a/spasm/src/asm/lexer.re
+++ b/spasm/src/asm/lexer.re
@@ -339,7 +339,7 @@ void Lexer::read (size_t nbytes)
file->read (old_limit, limit - old_limit);
if (file->eof ()) {
- size_t bytes = file->gcount ();
+ auto bytes = file->gcount ();
std::fill (old_limit + bytes, limit, '\0');
}
}
@@ -348,7 +348,7 @@ void Lexer::buffer_init ()
{
file->read (buffer, buffer_size);
if (file->eof ()) {
- size_t bytes = file->gcount ();
+ auto bytes = file->gcount ();
std::fill (buffer + bytes, buffer + buffer_size, '\0');
}