summaryrefslogtreecommitdiff
path: root/src/lib/eolian
diff options
context:
space:
mode:
authorDaniel Kolesa <d.kolesa@samsung.com>2019-05-29 21:02:33 +0200
committerDaniel Kolesa <d.kolesa@samsung.com>2019-05-29 21:02:33 +0200
commit194d769175f2eafa6cbd3658247ef8841c6c6e63 (patch)
treeb01edbc62bf8865d3ad4cc45c40452f702291aa5 /src/lib/eolian
parentbf1d2d86e478151f4d88cea098502bdfa19064b5 (diff)
eolian: fix unit version check
Diffstat (limited to 'src/lib/eolian')
-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);