summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/lib/eolian/eo_parser.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/eolian/eo_parser.c b/src/lib/eolian/eo_parser.c
index 4fc14be886..cb1c7e4ed9 100644
--- a/src/lib/eolian/eo_parser.c
+++ b/src/lib/eolian/eo_parser.c
@@ -2296,7 +2296,7 @@ parse_chunk(Eo_Lexer *ls, Eina_Bool eot)
2296 eo_lexer_syntax_error(ls, "invalid #version value"); 2296 eo_lexer_syntax_error(ls, "invalid #version value");
2297 if (ls->t.value.u > USHRT_MAX) 2297 if (ls->t.value.u > USHRT_MAX)
2298 eo_lexer_syntax_error(ls, "#version too high"); 2298 eo_lexer_syntax_error(ls, "#version too high");
2299 else if (ls->t.value.u < 0) 2299 else if (ls->t.value.u < 1)
2300 eo_lexer_syntax_error(ls, "#version too low"); 2300 eo_lexer_syntax_error(ls, "#version too low");
2301 2301
2302 ls->unit->version = (unsigned short)(ls->t.value.u); 2302 ls->unit->version = (unsigned short)(ls->t.value.u);