Use packed attribute for enums to modify their type.
JerryScript-DCO-1.0-Signed-off-by: Roland Takacs rtakacs.u-szeged@partner.samsung.com
This commit is contained in:
committed by
László Langó
parent
b1acf1a562
commit
a45976bca6
@@ -92,7 +92,7 @@ void mem_heap_valgrind_freya_mempool_request (void)
|
|||||||
/**
|
/**
|
||||||
* Length type of the block
|
* Length type of the block
|
||||||
*/
|
*/
|
||||||
typedef enum : uint8_t
|
typedef enum __attr_packed___
|
||||||
{
|
{
|
||||||
MEM_BLOCK_LENGTH_TYPE_GENERAL = 0, /**< general (may be multi-chunk) block
|
MEM_BLOCK_LENGTH_TYPE_GENERAL = 0, /**< general (may be multi-chunk) block
|
||||||
*
|
*
|
||||||
|
|||||||
Reference in New Issue
Block a user