From fe89237f22d6557d8ad7afdbd694c0fb35253c99 Mon Sep 17 00:00:00 2001 From: Mikko Rasa Date: Wed, 26 Oct 2016 21:48:49 +0300 Subject: [PATCH] Use correct form of GET_PROC_ADDRESS for unpromoted functions None compares as less than any list. --- scripts/extgen.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/extgen.py b/scripts/extgen.py index 7083e13a..0ea8b8ee 100755 --- a/scripts/extgen.py +++ b/scripts/extgen.py @@ -484,7 +484,7 @@ if core_version: for f in funcs: if target_api in f.supported_apis: gpa_suffix = "" - if f.version<=[1, 1]: + if f.version is not None and f.version<=[1, 1]: gpa_suffix = "_1_1" out.write("\t\t%s = reinterpret_cast<%s>(GET_PROC_ADDRESS%s(%s));\n"%(f.name, f.typedef, gpa_suffix, f.name)) out.write("\t\treturn Extension::CORE;\n") -- 2.45.2