mirror of
https://git.rwth-aachen.de/acs/public/villas/node/
synced 2025-03-09 00:00:00 +01:00
raw: fix parsing of options
This commit is contained in:
parent
d9ac24bf12
commit
ca533ac8e0
2 changed files with 2 additions and 2 deletions
|
@ -4,7 +4,7 @@ nodes = {
|
|||
|
||||
format = {
|
||||
type = "raw"
|
||||
bits = "32"
|
||||
bits = 32
|
||||
endianess = "big"
|
||||
}
|
||||
|
||||
|
|
|
@ -416,7 +416,7 @@ void RawFormat::parse(json_t *json)
|
|||
int fake_tmp = 0;
|
||||
const char *end = nullptr;
|
||||
|
||||
ret = json_unpack_ex(json, &err, 0, "{ }",
|
||||
ret = json_unpack_ex(json, &err, 0, "{ s?: s, s?: b, s?: i }",
|
||||
"endianess", &end,
|
||||
"fake", &fake_tmp,
|
||||
"bits", &bits
|
||||
|
|
Loading…
Add table
Reference in a new issue