Use packed attribute for enums to modify their type.

JerryScript-DCO-1.0-Signed-off-by: Roland Takacs [email protected]
This commit is contained in:
Roland Takacs
2016-02-05 13:22:42 +01:00
committed by László Langó
parent b1acf1a562
commit a45976bca6
+1 -1
View File
@@ -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
* *