Skip to content

Commit

Permalink
pattern/tiff: Fixed function parameter types
Browse files Browse the repository at this point in the history
  • Loading branch information
WerWolv committed Nov 27, 2024
1 parent b9f5f16 commit 5ffc583
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions patterns/tiff.hexpat
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,13 @@ struct Big<T> {
(_): std::error(std::format("Unrecognized version: {}", Version));
}
} [[sealed, format_read("format_read_big"), format_write("format_write_big"), transform("transform_big")]];
fn format_read_big(Big<u32> v) {
fn format_read_big(auto v) {
return std::format("{} (0x{:X})", v, v);
};
fn format_write_big(str v) {
return std::string::parse_int(v, 0);
};
fn transform_big(Big<u32> v) {
fn transform_big(auto v) {
return v.V;
};

Expand Down

0 comments on commit 5ffc583

Please sign in to comment.