Skip to content

Commit 7b0d5cf

Browse files
committed
printer context BUGFIX avoid alignment warnings
1 parent 939651e commit 7b0d5cf

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎src/printer_context.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1831,7 +1831,7 @@ ly_ctx_compiled_ext_stmts_storage_print(const struct lysc_ext_substmt *orig_subs
18311831
case LY_STMT_MANDATORY:
18321832
case LY_STMT_ORDERED_BY:
18331833
case LY_STMT_STATUS:
1834-
memcpy(orig_substmts[u].storage_p, substmts[u].storage_p, sizeof(uint16_t));
1834+
memcpy((uint16_t *)orig_substmts[u].storage_p, (uint16_t *)substmts[u].storage_p, sizeof(uint16_t));
18351835
break;
18361836
case LY_STMT_EXTENSION_INSTANCE: {
18371837
const struct lysc_ext_instance *orig_exts = *orig_substmts[u].storage_p;

0 commit comments

Comments
 (0)