Skip to content

Commit

Permalink
Improve test coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
doug-q committed Feb 2, 2024
1 parent 271acec commit 6b28cf7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/std_extensions/arithmetic/int_types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ impl CustomConst for ConstIntU {
format!("u{}({})", self.log_width, self.value).into()
}
fn check_custom_type(&self, typ: &CustomType) -> Result<(), CustomCheckFailure> {
if typ == &int_custom_type(type_arg(self.log_width)) {
if typ == &self.typ() {
Ok(())
} else {
Err(CustomCheckFailure::Message(
Expand Down Expand Up @@ -179,7 +179,7 @@ impl CustomConst for ConstIntS {
format!("i{}({})", self.log_width, self.value).into()
}
fn check_custom_type(&self, typ: &CustomType) -> Result<(), CustomCheckFailure> {
if typ == &int_custom_type(type_arg(self.log_width)) {
if typ == &self.typ() {
Ok(())
} else {
Err(CustomCheckFailure::Message(
Expand Down

0 comments on commit 6b28cf7

Please sign in to comment.