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
This commit is contained in:
Joerg Wunsch 2005-09-20 04:53:09 +00:00
parent 71aa89490e
commit 56b04c2511
1 changed files with 3 additions and 3 deletions

View File

@ -226,7 +226,7 @@ static int butterfly_initialize(PROGRAMMER * pgm, AVRPART * p)
char hw[2]; char hw[2];
char buf[10]; char buf[10];
char type; char type;
unsigned char c; char c;
int dev_supported = 0; int dev_supported = 0;
no_show_func_info(); no_show_func_info();
@ -312,11 +312,11 @@ static int butterfly_initialize(PROGRAMMER * pgm, AVRPART * p)
butterfly_recv(pgm, &c, 1); butterfly_recv(pgm, &c, 1);
if (c == 0) if (c == 0)
break; 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. */ /* 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; dev_supported = 1;
}; };
fprintf(stderr,"\n"); fprintf(stderr,"\n");