From daffdcea1aa6ddbb8a0212f31626e7d47e5769b9 Mon Sep 17 00:00:00 2001 From: Paul Gilbert Date: Sun, 14 Apr 2019 08:59:39 -0700 Subject: GLK: Fix compiler warnings for dispatch layer --- engines/glk/glk_dispa.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'engines/glk/glk_dispa.cpp') diff --git a/engines/glk/glk_dispa.cpp b/engines/glk/glk_dispa.cpp index cb6dc8d4b9..63d93330b7 100644 --- a/engines/glk/glk_dispa.cpp +++ b/engines/glk/glk_dispa.cpp @@ -340,7 +340,7 @@ uint32 GlkAPI::gidispatch_count_classes() const { } const gidispatch_intconst_t *GlkAPI::gidispatch_get_class(uint32 index) const { - if (index < 0 || index >= NUMCLASSES) + if (index >= NUMCLASSES) return nullptr; return &(class_table[index]); } @@ -350,7 +350,7 @@ uint32 GlkAPI::gidispatch_count_intconst() const { } const gidispatch_intconst_t *GlkAPI::gidispatch_get_intconst(uint32 index) const { - if (index < 0 || index >= NUMINTCONSTANTS) + if (index >= NUMINTCONSTANTS) return nullptr; return &(intconstant_table[index]); } @@ -360,7 +360,7 @@ uint32 GlkAPI::gidispatch_count_functions() const { } gidispatch_function_t *GlkAPI::gidispatch_get_function(uint32 index) const { - if (index < 0 || index >= NUMFUNCTIONS) + if (index >= NUMFUNCTIONS) return nullptr; return &(function_table[index]); } -- cgit v1.2.3