diff options
author | Anton Babushkin <anton.babushkin@me.com> | 2014-06-30 11:01:40 +0200 |
---|---|---|
committer | Anton Babushkin <anton.babushkin@me.com> | 2014-06-30 11:01:40 +0200 |
commit | 8495c440536a030dd13d53683b6c239304811d17 (patch) | |
tree | a0f8e1a413c7bf6798d2a6db847b8bb208af2a30 /src/modules/px4iofirmware/protocol.h | |
parent | a4315aee2ee69068c9a13568091805e20d0b04c5 (diff) | |
parent | 857b843d445f59f2dc393e4d5f879fc56f77a0e0 (diff) | |
download | px4-firmware-8495c440536a030dd13d53683b6c239304811d17.tar.gz px4-firmware-8495c440536a030dd13d53683b6c239304811d17.tar.bz2 px4-firmware-8495c440536a030dd13d53683b6c239304811d17.zip |
Merge commit '857b843d445f59f2dc393e4d5f879fc56f77a0e0' into navigator_rewrite_drton
Diffstat (limited to 'src/modules/px4iofirmware/protocol.h')
-rw-r--r-- | src/modules/px4iofirmware/protocol.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/px4iofirmware/protocol.h b/src/modules/px4iofirmware/protocol.h index 7471faec7..d5a6b1ec4 100644 --- a/src/modules/px4iofirmware/protocol.h +++ b/src/modules/px4iofirmware/protocol.h @@ -312,7 +312,7 @@ struct IOPacket { #define PKT_COUNT(_p) ((_p).count_code & PKT_COUNT_MASK) #define PKT_CODE(_p) ((_p).count_code & PKT_CODE_MASK) -#define PKT_SIZE(_p) ((uint8_t *)&((_p).regs[PKT_COUNT(_p)]) - ((uint8_t *)&(_p))) +#define PKT_SIZE(_p) ((size_t)((uint8_t *)&((_p).regs[PKT_COUNT(_p)]) - ((uint8_t *)&(_p)))) static const uint8_t crc8_tab[256] __attribute__((unused)) = { |