avrdude-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [avrdude-dev] include inttypes.h


From: Theodore A. Roth
Subject: Re: [avrdude-dev] include inttypes.h
Date: Wed, 12 Feb 2003 09:51:13 -0800 (PST)


On Wed, 12 Feb 2003, E. Weddington wrote:

:) static int stk500_loadaddr(PROGRAMMER * pgm, uint16_t addr)
:)
:) If the uint16_t is changed to unsigned int or unsigned short then
:) intttypes.h is not needed. This builds fine on cygwin.

Looking through the code, it seems the unsigned int is safe. The
_loadaddr function just sucks out the lower two bytes and all the
callers declare addr as unsigned int.

I've committed the fix.

Ted





reply via email to

[Prev in Thread] Current Thread [Next in Thread]