mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-19 00:37:25 +01:00
[apps/sequence][apps/graph] CRC should be called on sizes multiple of 4
Change-Id: I4a55c14e1418f730051252cabef324833279747f
This commit is contained in:
@@ -32,6 +32,8 @@ public:
|
||||
protected:
|
||||
mutable Poincare::Expression * m_expression;
|
||||
private:
|
||||
constexpr static size_t k_dataLengthInBytes = TextField::maxBufferSize()*sizeof(char)+2;
|
||||
static_assert((k_dataLengthInBytes & 0x3) == 0, "The function data size is not a multiple of 4 bytes (cannot compute crc)"); // Assert that dataLengthInBytes is a multiple of 4
|
||||
virtual char symbol() const = 0;
|
||||
char m_text[TextField::maxBufferSize()];
|
||||
const char * m_name;
|
||||
|
||||
Reference in New Issue
Block a user