Fix a bug intrepidcs\libicsneo-examples#1 which prevented building on 32-bit platforms

pull/4/head
Paul Hollinsky 2019-01-10 16:35:11 -05:00
parent e42bb597fc
commit 34148e8833
1 changed files with 1 additions and 1 deletions

View File

@ -144,7 +144,7 @@ typedef struct {
#include "icsneo/communication/message/message.h"
#include <memory>
static_assert(sizeof(neomessage_t) == 72, "neomessage_t may not change size from 72 bytes!");
static_assert(sizeof(neomessage_t) == (56 + sizeof(void*) + sizeof(size_t)), "neomessage_t size is incorrect! Changing size will break compatibility with existing C API programs.");
static_assert(sizeof(neomessage_can_t) == sizeof(neomessage_t), "All types of neomessage_t must be the same size! (CAN is not)");
static_assert(sizeof(neomessage_eth_t) == sizeof(neomessage_t), "All types of neomessage_t must be the same size! (Ethernet is not)");