Skip to content

Commit

Permalink
use eq_flat type comparison method
Browse files Browse the repository at this point in the history
  • Loading branch information
collinc97 committed Jan 12, 2021
1 parent 62dc7b4 commit 9215d91
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion compiler/src/output/output_bytes.rs
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ impl OutputBytes {
let register_type = parameter.type_;
let return_value_type = value.to_type(&span)?;

if register_type != return_value_type {
if !register_type.eq_flat(&return_value_type) {
return Err(OutputBytesError::mismatched_output_types(
register_type,
return_value_type,
Expand Down

0 comments on commit 9215d91

Please sign in to comment.