diff options
author | David Robillard <d@drobilla.net> | 2022-03-14 21:24:13 -0400 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2022-03-14 21:24:13 -0400 |
commit | 633b7c8a3f12461c032ee2da297a62958defc19a (patch) | |
tree | d6efa40de2a9553d032298bff582aeb02bc27e8d /src | |
parent | 7df6ee7e742a57b35f9c82c150225da5be48a307 (diff) | |
download | sratom-serd1.tar.gz sratom-serd1.tar.bz2 sratom-serd1.zip |
fixup! port to serd1serd1
Diffstat (limited to 'src')
-rw-r--r-- | src/dumper.c | 7 | ||||
-rw-r--r-- | src/loader.c | 6 |
2 files changed, 5 insertions, 8 deletions
diff --git a/src/dumper.c b/src/dumper.c index 73a667e..eecbf0e 100644 --- a/src/dumper.c +++ b/src/dumper.c @@ -323,10 +323,7 @@ write_atom(StreamContext* const ctx, const size_t len = 2 * size; char* const str = (char*)calloc(len + 1, 1); for (uint32_t i = 0; i < size; ++i) { - snprintf(str + (2 * i), - 3, - "%02X", - (unsigned)*((const uint8_t*)body + i)); + snprintf(str + (2 * i), 3, "%02X", (unsigned)*((const uint8_t*)body + i)); } object = @@ -364,7 +361,7 @@ write_atom(StreamContext* const ctx, ctx->sflags |= SERD_LIST_O | SERD_TERSE_O; LV2_ATOM_TUPLE_BODY_FOREACH (body, size, i) { if (!is_primitive_type(ctx, i->type)) { - ctx->sflags &= ~SERD_TERSE_O; + ctx->sflags &= ~(SerdStatementFlags)SERD_TERSE_O; } } diff --git a/src/loader.c b/src/loader.c index eead3a2..b0cfc4e 100644 --- a/src/loader.c +++ b/src/loader.c @@ -60,9 +60,9 @@ struct SratomLoaderImpl { }; typedef struct { - SratomLoader* SERD_NONNULL loader; - const SerdNode* SERD_NONNULL base_uri; - LV2_URID seq_unit; + SratomLoader* SERD_NONNULL loader; + const SerdNode* SERD_NULLABLE base_uri; + LV2_URID seq_unit; } LoadContext; static SratomStatus |