Skip to content

Commit

Permalink
ui: use QEMU_IS_ALIGNED macro
Browse files Browse the repository at this point in the history
Applied using the Coccinelle semantic patch scripts/coccinelle/use_osdep.cocci

Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Message-Id: <20170718061005.29518-9-f4bug@amsat.org>
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
  • Loading branch information
philmd authored and kraxel committed Nov 10, 2017
1 parent 777c5f1 commit 2e9a856
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ui/console-gl.c
Expand Up @@ -48,7 +48,7 @@ void surface_gl_create_texture(QemuGLShader *gls,
DisplaySurface *surface)
{
assert(gls);
assert(surface_stride(surface) % surface_bytes_per_pixel(surface) == 0);
assert(QEMU_IS_ALIGNED(surface_stride(surface), surface_bytes_per_pixel(surface)));

switch (surface->format) {
case PIXMAN_BE_b8g8r8x8:
Expand Down

0 comments on commit 2e9a856

Please sign in to comment.