diff options
| author | Daniel Eklöf <daniel@ekloef.se> | 2020-12-26 15:34:55 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2021-01-01 20:09:31 +0000 |
| commit | 92dc581bea428a69bb944d574629f8ad7f0dd3ca (patch) | |
| tree | 89de835c98d2d2bfe3c72450947af873b5de5d3a | |
| parent | box-drawing: add infrastructure for rendering box drawing characters ourselves (diff) | |
box-drawing: fix compilation error on 32-bit; wc is int on 64-bit, long on 32-bit
| -rw-r--r-- | box-drawing.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/box-drawing.c b/box-drawing.c index c7e5ec7f..0319412f 100644 --- a/box-drawing.c +++ b/box-drawing.c @@ -183,7 +183,7 @@ draw_glyph(wchar_t wc, pixman_image_t *pix, int width, int height, int stride) case 0x259d: case 0x259e: case 0x259f: - LOG_WARN("unimplemented: box drawing: wc=%04x", wc); + LOG_WARN("unimplemented: box drawing: wc=%04lx", (long)wc); //assert(false); break; } @@ -192,7 +192,7 @@ draw_glyph(wchar_t wc, pixman_image_t *pix, int width, int height, int stride) struct fcft_glyph * box_drawing(struct terminal *term, wchar_t wc) { - LOG_DBG("rendering 0x%04x", wc); + LOG_DBG("rendering 0x%04lx", (long)wc); int width = term->cell_width; int height = term->cell_height; |
