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:
Roland Takacs 2016-02-05 12:52:31 +01:00 committed by László Langó
parent b1acf1a562
commit a45976bca6

View File

@ -92,7 +92,7 @@ void mem_heap_valgrind_freya_mempool_request (void)
/**
* 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
*