summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/ir/context.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ir/context.rs b/src/ir/context.rs
index 1e759b78..799c2e7d 100644
--- a/src/ir/context.rs
+++ b/src/ir/context.rs
@@ -2199,7 +2199,7 @@ impl BindgenContext {
fn compute_has_float(&mut self) {
let _t = self.timer("compute_has_float");
assert!(self.has_float.is_none());
- if self.options.derive_eq {
+ if self.options.derive_eq || self.options.derive_ord {
self.has_float = Some(analyze::<HasFloat>(self));
}
}