src/lexer.h

changeset 79
2425fa6a4f21
parent 75
bf8c57437231
child 80
2ed3430fdd08
--- a/src/lexer.h	Fri Jan 17 21:42:02 2014 +0200
+++ b/src/lexer.h	Fri Jan 17 22:55:13 2014 +0200
@@ -63,7 +63,7 @@
 
 	inline bool has_valid_token() const
 	{
-		return (is_at_end() == false && m_token_position != m_tokens.begin());
+		return (is_at_end() == false && m_token_position != m_tokens.begin() - 1);
 	}
 
 	inline token* get_token() const

mercurial