From 6463d120dc5de4efadb79e722055f8e1d6a4c548 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/avrdude@518 81a1dc3b-b13d-400b-aceb-764788c761c2 --- butterfly.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/butterfly.c b/butterfly.c index 313b62ea..b64a3aca 100644 --- a/butterfly.c +++ b/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");