Skip to content
Commit 4323d381 authored by Nicolas Pitre's avatar Nicolas Pitre Committed by Anas Nashif
Browse files

json: make it 64-bit compatible



The struct json_obj_descr definition allocates only 2 bits for type
alignment. Instead of using them literally minus 1 to encode 1, 2, or 4,
let's store the alignment's shift value instead so that 1, 2, 4 or 8 can
be encoded with the same 2 bits to accommodate 64-bit builds.

Signed-off-by: default avatarNicolas Pitre <npitre@baylibre.com>
parent def743ef
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment