[rtems-central commit] interface: Micro optimize
Sebastian Huber
sebh at rtems.org
Sun Oct 11 16:37:20 UTC 2020
Module: rtems-central
Branch: master
Commit: 2e2d9ebc521eaafe8f2e652a451e46ddb31935c5
Changeset: http://git.rtems.org/rtems-central/commit/?id=2e2d9ebc521eaafe8f2e652a451e46ddb31935c5
Author: Sebastian Huber <sebastian.huber at embedded-brains.de>
Date: Sun Oct 11 18:35:57 2020 +0200
interface: Micro optimize
---
rtemsspec/interface.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/rtemsspec/interface.py b/rtemsspec/interface.py
index 57ed8e5..fdbcfc9 100644
--- a/rtemsspec/interface.py
+++ b/rtemsspec/interface.py
@@ -448,11 +448,11 @@ def _is_ready_to_bubble(before: Node, after: Node) -> bool:
# Move items with an explicit placement order towards the bottom of the
# file
if before.index and after.index:
- return before.index > after.index
+ return after.index < before.index
if after.index:
return False
- return before > after
+ return after < before
def _bubble_sort(nodes: List[Node]) -> List[Node]:
More information about the vc
mailing list