avrdude-dev
[Top][All Lists]
Advanced

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

Re: [avrdude-dev] avrdude r1160 Segmentation fault


From: Joerg Wunsch
Subject: Re: [avrdude-dev] avrdude r1160 Segmentation fault
Date: Mon, 6 May 2013 20:19:44 +0200
User-agent: Mutt/1.5.21 (2010-09-15)

As René Liebscher wrote:

> as C guarantees only 16 bit for an int but 32 bit for a long, you
> better take the long as fallback. (even if is unlikely that avrdude
> will ever be compiled for a machine with only 16 bit integer.)

We rely on default integers being 32 bit in AVRDUDE in so many places,
so I think this is a moot point.

If you really think it's necessary, you could still check for UINT_MAX
being large enough.  I think that's better than potentially allocating
64-bit integers here.

-- 
cheers, Joerg               .-.-.   --... ...--   -.. .  DL8DTL

http://www.sax.de/~joerg/
Never trust an operating system you don't have sources for. ;-)



reply via email to

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