|
From: | E. Weddington |
Subject: | Re: [avrdude-dev] Good news: STK500v2 and JTAG ICE mkII code committed to CVS |
Date: | Fri, 27 May 2005 07:06:28 -0600 |
User-agent: | Mozilla Thunderbird 1.0 (Windows/20041206) |
Joerg Wunsch wrote:
As Joerg Wunsch wrote:I've analyzed and found that. It turned out to be a signedness problem: shifting an unsigned char left causes it to be promoted to an int which is signed. This had the effect of 0xf3 becoming a negative number, which was then misinterpreted as an overly large unsigned number.
Occasionally, the C standard can be absolutely stupid.
Fix committed to CVS.
Congratulations on finding it and fixing it! Thanks Eric
[Prev in Thread] | Current Thread | [Next in Thread] |