From 04569ebba5661643e2e08a8e4b1084d22e93148c Mon Sep 17 00:00:00 2001 From: Kp Date: Sat, 20 Oct 2018 17:25:59 +0000 Subject: [PATCH] Fix clang warning about using %hu with unsigned gcc permits this, but clang complains. Match the format specifier to the type of the underlying temporary variable. Fixes: a65068fed150711b1caa4634834068168bc693bb ("Move OGL RLE bitmap buffer to stack") --- similar/arch/ogl/ogl.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/similar/arch/ogl/ogl.cpp b/similar/arch/ogl/ogl.cpp index d07338eaf..6322e2dca 100644 --- a/similar/arch/ogl/ogl.cpp +++ b/similar/arch/ogl/ogl.cpp @@ -1805,7 +1805,7 @@ void ogl_loadbmtexture_f(grs_bitmap &rbm, int texfilt, bool texanis, bool edgepa buf = decodebuf.data(); if (!bm_rle_expand(*bm).loop(bm_w, bm_rle_expand_state(begin(decodebuf), end(decodebuf)))) { - con_printf(CON_URGENT, "error: insufficient space to decode %hux%hu bitmap. Please report this as a bug.", bm_w, bm->bm_h); + con_printf(CON_URGENT, "error: insufficient space to decode %ux%hu bitmap. Please report this as a bug.", bm_w, bm->bm_h); } } ogl_loadtexture(gr_palette, buf, 0, 0, *bm->gltexture, bm->get_flags(), 0, texfilt, texanis, edgepad);