Skip to content

Commit 5485612

Browse files
committed
Fix another unaligned write.
1 parent 92d91d2 commit 5485612

File tree

1 file changed

+1
-1
lines changed
  • plotters-bitmap/src/bitmap_pixel

1 file changed

+1
-1
lines changed

plotters-bitmap/src/bitmap_pixel/rgb.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ impl PixelFormat for RGBPixel {
120120
}
121121

122122
unsafe {
123-
*ptr = (h1 | l1, h2 | l2, h3 | l3);
123+
ptr.write_unaligned((h1 | l1, h2 | l2, h3 | l3));
124124
}
125125
}
126126

0 commit comments

Comments
 (0)