Skip to content

Commit

Permalink
endian.h: fix big-endiand 2 bytes types
Browse files Browse the repository at this point in the history
  • Loading branch information
dron0gus committed May 1, 2024
1 parent 031210a commit a31802e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion util/include/rusefi/endian.h
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ class SwapEndian
}

constexpr SwapEndian(std::conditional_t<sizeof(T) == 2, T, IncompleteType> val) {
rep = SWAP_UINT32(val);
rep = SWAP_UINT16(val);
}
private:
T rep;
Expand Down

0 comments on commit a31802e

Please sign in to comment.