Skip to content

Commit a45976b

Browse files
Roland TakacsLaszloLango
authored andcommitted
Use packed attribute for enums to modify their type.
JerryScript-DCO-1.0-Signed-off-by: Roland Takacs rtakacs.u-szeged@partner.samsung.com
1 parent b1acf1a commit a45976b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

jerry-core/mem/mem-heap.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ void mem_heap_valgrind_freya_mempool_request (void)
9292
/**
9393
* Length type of the block
9494
*/
95-
typedef enum : uint8_t
95+
typedef enum __attr_packed___
9696
{
9797
MEM_BLOCK_LENGTH_TYPE_GENERAL = 0, /**< general (may be multi-chunk) block
9898
*

0 commit comments

Comments
 (0)