From f9ca79a7b7762bdc698efb7c34ecaac63540eacb Mon Sep 17 00:00:00 2001 From: Rob Landley Date: Thu, 25 Feb 2016 18:10:35 -0600 Subject: Fix more warnings on 32 bit builds. --- toys/lsb/seq.c | 2 +- toys/other/hexedit.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/toys/lsb/seq.c b/toys/lsb/seq.c index 4e401864..0e0f4608 100644 --- a/toys/lsb/seq.c +++ b/toys/lsb/seq.c @@ -38,7 +38,7 @@ static void insanitize(char *f) if (!s) error_exit("bad -f no %%f"); if (-1 == stridx("aAeEfFgG", *s) || (s = next_printf(s, 0))) { // The @ is a byte offset, not utf8 chars. Waiting for somebody to complain. - error_exit("bad -f '%s'@%ld", f, s-f+1); + error_exit("bad -f '%s'@%d", f, (int)(s-f+1)); } } diff --git a/toys/other/hexedit.c b/toys/other/hexedit.c index a9d97aa2..ffa304c3 100644 --- a/toys/other/hexedit.c +++ b/toys/other/hexedit.c @@ -50,9 +50,9 @@ static int draw_char(FILE *fp, wchar_t broiled) if (broiled==127) broiled = 32; else broiled += 64; } - printf("%c", broiled); + printf("%c", (int)broiled); tty_esc("0m"); - } else printf("%c", broiled); + } else printf("%c", (int)broiled); } return 1; -- cgit v1.2.3