From: Mikko Rasa Date: Sun, 10 Sep 2017 12:32:26 +0000 (+0300) Subject: Simplify version comparisons X-Git-Url: http://git.tdb.fi/?a=commitdiff_plain;h=48fc376cdc7b626b326220fafe39d80c6c366081;p=libs%2Fgl.git Simplify version comparisons The less-than operator was implemented a while ago but these two cases were missed. --- diff --git a/source/extension.cpp b/source/extension.cpp index c543328b..a0959861 100644 --- a/source/extension.cpp +++ b/source/extension.cpp @@ -201,7 +201,7 @@ inline Version _get_gl_version() if(const char *force_ver_ptr = getenv("MSPGL_FORCE_VERSION")) { Version force_ver(force_ver_ptr); - if(!(force_ver>=ver)) + if(force_ver=ver)) + if(force_ver