Skip to content

Commit

Permalink
Explicitly mark constant as 'unsigned' to avoid unnecessary promotion…
Browse files Browse the repository at this point in the history
… to 'long'.

Long constants trigger the performance warning "Constant is long" with cc65.
  • Loading branch information
oliverschmidt committed Mar 28, 2016
1 parent 4f28289 commit 111a976
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/net/mac/tsch/tsch-conf.h
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@
#define TSCH_DEFAULT_TS_MAX_TX 4256
#define TSCH_DEFAULT_TS_TIMESLOT_LENGTH 15000

#elif TSCH_CONF_DEFAULT_TIMESLOT_LENGTH == 65000
#elif TSCH_CONF_DEFAULT_TIMESLOT_LENGTH == 65000U
/* 65ms timeslot, i.e. nearly the max length allowed by standard (16-bit unsigned in micro-seconds).
* Useful for running link-layer security on sky or z1 in Cooja, where only S/W security is supported.
* Note: this slot timing would require a total of 120ms. If a slot overlaps with the next active slot,
Expand Down

0 comments on commit 111a976

Please sign in to comment.