anv: simplify chained comparison
Signed-off-by: Eric Engestrom <eric.engestrom@intel.com> Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
This commit is contained in:
committed by
Eric Engestrom
parent
1458aa1f78
commit
b503d4e458
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user