diff options
Diffstat (limited to 'src/lua/lua_task.c')
-rw-r--r-- | src/lua/lua_task.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lua/lua_task.c b/src/lua/lua_task.c index c08c88491..92c57a9d6 100644 --- a/src/lua/lua_task.c +++ b/src/lua/lua_task.c @@ -1333,7 +1333,7 @@ lua_textpart_get_language (lua_State * L) }; const gchar *sel; - if (part != NULL && part->script > 0 && part->script < G_N_ELEMENTS (languages)) { + if (part != NULL && part->script > 0 && part->script < (gint)G_N_ELEMENTS (languages)) { sel = languages[part->script]; if (*sel != '\0') { lua_pushstring (L, sel); |