From: Eric Engestrom Date: Wed, 27 Feb 2019 10:40:14 +0000 (+0000) Subject: anv: simplify chained comparison X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=b503d4e4583b989e5e2f1bdfca10e4af6d9a2e6c;p=mesa.git anv: simplify chained comparison Signed-off-by: Eric Engestrom Reviewed-by: Lionel Landwerlin --- 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):