Skip to content

Commit

Permalink
fix: don't use subtractions in CMake preprocessor definitions
Browse files Browse the repository at this point in the history
  • Loading branch information
higaski committed Apr 24, 2024
1 parent 1f275bd commit 691c143
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,10 @@ set(DCC_RX_MIN_PREAMBLE_BITS
10u
CACHE STRING "Minimum number of preambel bits of decoder")
set(DCC_RX_DEQUE_SIZE
32u-1u
31u
CACHE STRING "Size of the receiver deque of decoder")
set(DCC_RX_BIDI_DEQUE_SIZE
8u-1u
7u
CACHE STRING "Size of the sender deque of decoder")
set(DCC_TX_MIN_PREAMBLE_BITS
17u
Expand All @@ -43,7 +43,7 @@ set(DCC_TX_MAX_PREAMBLE_BITS
30u
CACHE STRING "Maximum number of preambel bits of command station")
set(DCC_TX_DEQUE_SIZE
4u-1u
3u
CACHE STRING "Size of the transmitter deque of command station")

add_library(DCC INTERFACE)
Expand Down

0 comments on commit 691c143

Please sign in to comment.