Skip to content

Instantly share code, notes, and snippets.

@badboy
Created September 6, 2014 15:40
Show Gist options
  • Save badboy/078a980efe865f6992e7 to your computer and use it in GitHub Desktop.
Save badboy/078a980efe865f6992e7 to your computer and use it in GitHub Desktop.
diff --git i/include/horizontime.h w/include/horizontime.h
index b3ccf89..2db2083 100644
--- i/include/horizontime.h
+++ w/include/horizontime.h
@@ -50,7 +50,7 @@ struct horizontime_t
parentExecutionOrderId < other.parentExecutionOrderId ? false :
schedulingOrderId > other.schedulingOrderId ? true : // 5. criterion: scheduling order
schedulingOrderId < other.schedulingOrderId ? false :
- insertOrder > insertOrder; // 6. criterion: final tie breaker (needed during init)
+ insertOrder > other.insertOrder; // 6. criterion: final tie breaker (needed during init)
}
constexpr
@@ -61,7 +61,7 @@ struct horizontime_t
&& parentStartTime == other.parentStartTime
&& parentExecutionOrderId == other.parentExecutionOrderId
&& schedulingOrderId == other.schedulingOrderId
- && insertOrder == insertOrder;
+ && insertOrder == other.insertOrder;
}
constexpr bool operator!=(const horizontime_t & other) const { return !(*this == other); };
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment