diff options
Diffstat (limited to 'tests/utests/schema/test_schema.c')
-rw-r--r-- | tests/utests/schema/test_schema.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/utests/schema/test_schema.c b/tests/utests/schema/test_schema.c index 953aad8..cba2b2d 100644 --- a/tests/utests/schema/test_schema.c +++ b/tests/utests/schema/test_schema.c @@ -1712,7 +1712,7 @@ test_extension_compile(void **state) LY_ARRAY_NEW_GOTO(UTEST_LYCTX, ext_p.substmts, substmtp, rc, cleanup); substmtp->stmt = LY_STMT_ERROR_MESSAGE; - substmtp->storage = (uintptr_t)(void *)&ext_p.parsed; + substmtp->storage_p = &ext_p.parsed; /* fake parse */ lydict_insert(UTEST_LYCTX, "my error", 0, (const char **)&ext_p.parsed); @@ -1721,7 +1721,7 @@ test_extension_compile(void **state) LY_ARRAY_NEW_GOTO(UTEST_LYCTX, ext_c.substmts, substmt, rc, cleanup); substmt->stmt = LY_STMT_ERROR_MESSAGE; - substmt->storage = (uintptr_t)(void *)&ext_c.compiled; + substmt->storage_p = &ext_c.compiled; /* * error-message |