Skip to content

Commit

Permalink
Fix logic mistake in *_ne functions
Browse files Browse the repository at this point in the history
  • Loading branch information
Veykril committed May 28, 2018
1 parent de89335 commit e429094
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions palette/src/equality.rs
Expand Up @@ -22,7 +22,7 @@ macro_rules! impl_eq {
$( self.$element.abs_diff_eq(&other.$element, epsilon) )&&+
}
fn abs_diff_ne(&self, other: &Self, epsilon: T::Epsilon) -> bool {
$( self.$element.abs_diff_ne(&other.$element, epsilon) )&&+
$( self.$element.abs_diff_ne(&other.$element, epsilon) )||+
}
}

Expand All @@ -39,7 +39,7 @@ macro_rules! impl_eq {
$( self.$element.relative_eq(&other.$element, epsilon, max_relative) )&&+
}
fn relative_ne(&self, other: &Self, epsilon: T::Epsilon, max_relative: T::Epsilon) -> bool {
$( self.$element.relative_ne(&other.$element, epsilon, max_relative) )&&+
$( self.$element.relative_ne(&other.$element, epsilon, max_relative) )||+
}
}

Expand All @@ -56,7 +56,7 @@ macro_rules! impl_eq {
$( self.$element.ulps_eq(&other.$element, epsilon, max_ulps) )&&+
}
fn ulps_ne(&self, other: &Self, epsilon: T::Epsilon, max_ulps: u32) -> bool {
$( self.$element.ulps_ne(&other.$element, epsilon, max_ulps) )&&+
$( self.$element.ulps_ne(&other.$element, epsilon, max_ulps) )||+
}
}
}
Expand Down

0 comments on commit e429094

Please sign in to comment.