avr-chat
[Top][All Lists]
Advanced

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

Re: [avr-chat] format '%5.2f' expects type 'double', but argument 6 has


From: Joerg Wunsch
Subject: Re: [avr-chat] format '%5.2f' expects type 'double', but argument 6 has type 'float'
Date: Fri, 3 Feb 2012 23:29:18 +0100
User-agent: Mutt/1.5.20 (2009-06-14)

As Rick Mann wrote:

> Really? Interesting. I consider explicitly typing out the default
> behavior to be a prime example of messy. You don't gain anything by
> having it in the code (there's no readability improvement); in fact,
> it clutters the code.

For variadic functions, it's easy to overlook the default promotion.

-- 
cheers, J"org               .-.-.   --... ...--   -.. .  DL8DTL

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



reply via email to

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