From 56b04c2511240042d9ff45b382b31bc43af3c5b7 Mon Sep 17 00:00:00 2001 From: Joerg Wunsch Date: Tue, 20 Sep 2005 04:53:09 +0000 Subject: [PATCH] Use a slightly different approach to avoid the signed/unsigned warning. Pointed out by: Brian Dean git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk@518 81a1dc3b-b13d-400b-aceb-764788c761c2 --- avrdude/butterfly.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/avrdude/butterfly.c b/avrdude/butterfly.c index 313b62ea..b64a3aca 100644 --- a/avrdude/butterfly.c +++ b/avrdude/butterfly.c @@ -226,7 +226,7 @@ static int butterfly_initialize(PROGRAMMER * pgm, AVRPART * p) char hw[2]; char buf[10]; char type; - unsigned char c; + char c; int dev_supported = 0; no_show_func_info(); @@ -312,11 +312,11 @@ static int butterfly_initialize(PROGRAMMER * pgm, AVRPART * p) butterfly_recv(pgm, &c, 1); if (c == 0) break; - fprintf(stderr, " Device code: 0x%02x\n", c); + fprintf(stderr, " Device code: 0x%02x\n", (unsigned int)(unsigned char)c); /* FIXME: Need to lookup devcode and report the device. */ - if (p->avr910_devcode == c) + if (p->avr910_devcode == (int)(unsigned char)c) dev_supported = 1; }; fprintf(stderr,"\n");