1
0
mirror of synced 2026-04-29 21:28:23 +00:00

Fixed O(n^2) performance bug in verilog preprocessor

This commit is contained in:
Clifford Wolf
2013-11-22 14:08:43 +01:00
parent 058ceda6a0
commit a362fd81ae

View File

@@ -62,7 +62,7 @@ static void insert_input(std::string str)
static char next_char()
{
if (input_buffer.size() == 0)
if (input_buffer.empty())
return 0;
assert(input_buffer_charp <= input_buffer.front().size());