util: Fix the maximum value computation for SSCALED channels.

This commit is contained in:
José Fonseca 2010-03-06 12:49:14 +00:00
parent cfde6c50ae
commit f342ceca38

View file

@ -78,7 +78,7 @@ class Channel:
if self.type == UNSIGNED:
return (1 << self.size) - 1
if self.type == SIGNED:
return self.size - 1
return (1 << (self.size - 1)) - 1
assert False
def min(self):