summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorEric Engestrom <[email protected]>2019-02-27 10:40:14 +0000
committerEric Engestrom <[email protected]>2019-03-01 11:20:28 +0000
commitb503d4e4583b989e5e2f1bdfca10e4af6d9a2e6c (patch)
treef917657d9eab3bf088ca34e995ecde5b52f57b98 /src
parent1458aa1f78edc22ded5b40f17c148a22fcabfda2 (diff)
anv: simplify chained comparison
Signed-off-by: Eric Engestrom <[email protected]> Reviewed-by: Lionel Landwerlin <[email protected]>
Diffstat (limited to 'src')
-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):