From 397e80762edd26f65b92023cdbd51479f6d78f28 Mon Sep 17 00:00:00 2001 From: Emma Anholt Date: Tue, 1 Jun 2021 13:37:56 -0700 Subject: [PATCH] u_format: Use the nice helper for reversing an array. Acked-by: Adam Jackson Acked-by: Ilia Mirkin Part-of: --- src/util/format/u_format_parse.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/util/format/u_format_parse.py b/src/util/format/u_format_parse.py index 395376d..2a5edab 100644 --- a/src/util/format/u_format_parse.py +++ b/src/util/format/u_format_parse.py @@ -136,7 +136,7 @@ class Format: self.be_swizzles = le_swizzles be_shift = 0 - for channel in self.be_channels[3::-1]: + for channel in reversed(self.be_channels): channel.shift = be_shift be_shift += channel.size -- 2.7.4