summaryrefslogtreecommitdiffstats
path: root/src/intel/vulkan/anv_entrypoints_gen.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/intel/vulkan/anv_entrypoints_gen.py')
-rw-r--r--src/intel/vulkan/anv_entrypoints_gen.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/intel/vulkan/anv_entrypoints_gen.py b/src/intel/vulkan/anv_entrypoints_gen.py
index 1dca173c0a9..6f6053915d8 100644
--- a/src/intel/vulkan/anv_entrypoints_gen.py
+++ b/src/intel/vulkan/anv_entrypoints_gen.py
@@ -454,7 +454,7 @@ class StringIntMap(object):
def add_string(self, string, num):
assert not self.baked
assert string not in self.strings
- assert num >= 0 and num < 2**31
+ assert 0 <= num < 2**31
self.strings[string] = StringIntMapEntry(string, num)
def bake(self):