Skip to content

Commit

Permalink
abs isnt't constexpr in clang
Browse files Browse the repository at this point in the history
  • Loading branch information
mikee47 committed Jun 9, 2024
1 parent 3955049 commit 89d315b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/include/Graphics/Drawing/Macros.h
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
#define GDRAW_TYPE(type) GDRAW_FIELD(Header::type, 4)
#define GDRAW_CMD(cmd) GDRAW_OPCODE(OpCode::execute) | GDRAW_TYPE(Type::uint8) | uint8_t(Graphics::Drawing::cmd),
#define GDRAW_UINT16(value) uint8_t(value), uint8_t((value) >> 8),
#define GDRAW_INT16(value) uint8_t(abs(value)), uint8_t(abs(value) >> 8),
#define GDRAW_INT16(value) uint8_t(value), uint8_t(uint16_t(value) >> 8),
#define GDRAW_UINT32(value) uint8_t(value), uint8_t((value) >> 8), uint8_t((value) >> 16), uint8_t((value) >> 24),
#define GDRAW_MAKE_UINT32(w1, w2) (uint32_t(w2) << 16) | uint32_t(w1)
#define GDRAW_REGDEF(reg, size) uint8_t(offsetof(Graphics::Drawing::Registers, reg) / size)
Expand Down

0 comments on commit 89d315b

Please sign in to comment.