Skip to content

Commit 75bd00a

Browse files
committed
smolscale: Fix unaligned access
This was causing a sigbus on sparc64. Fixes #184 (GitHub).
1 parent 63bf518 commit 75bd00a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

chafa/internal/smolscale/smolscale.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -858,7 +858,7 @@ find_repacks (const SmolImplementation **implementations,
858858
do_reorder (mid_order, dest_order,
859859
reorder_meta [SMOL_REPACK_SIGNATURE_GET_REORDER (dest_meta->signature)].dest);
860860

861-
if (*((const uint32_t *) dest_order) == *((const uint32_t *) dest_pmeta->order))
861+
if (!memcmp (&dest_order, &dest_pmeta->order, sizeof (dest_order)))
862862
{
863863
/* Success */
864864
goto out;

0 commit comments

Comments
 (0)