diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2021-04-15 16:34:27 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2021-04-19 07:12:57 +0200 |
commit | ffec29adcc90f83b0e21e26ea2646214a58b1976 (patch) | |
tree | 4792f24c01613815002bebfc86a273eb9eaf0c99 | |
parent | spec: Document semaphore obtain errors (diff) | |
download | rtems-central-ffec29adcc90f83b0e21e26ea2646214a58b1976.tar.bz2 |
validation: Avoid use of uint0_t
-rw-r--r-- | rtemsspec/validation.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/rtemsspec/validation.py b/rtemsspec/validation.py index baff5305..4cb7cba6 100644 --- a/rtemsspec/validation.py +++ b/rtemsspec/validation.py @@ -1022,7 +1022,7 @@ class TransitionMap: content.add([f"static const {ident}_Entry", f"{ident}_Entries[] = {{"]) entries[-1] = entries[-1].replace("},", "}") content.append(entries) - bits = math.ceil(math.log2(len(self._entries)) / 8) * 8 + bits = max(8, math.ceil(math.log2(len(self._entries)) / 8) * 8) content.append( ["};", "", f"static const uint{bits}_t", f"{ident}_Map[] = {{"]) text = ", ".join( |