--- avr-libc-1.6.8/libc/stdlib/dtostre.c 2010-06-23 09:09:19.000000000 -0700 +++ avr-libc/libc/stdlib/dtostre.c 2010-06-23 09:15:06.000000000 -0700 @@ -26,7 +26,7 @@ ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -/* $Id: dtostre.c,v 1.2.2.1 2009/04/01 23:12:10 arcanum Exp $ */ +/* $Id: dtostre.c 1944 2009-04-01 23:12:20Z arcanum $ */ #include #include @@ -37,19 +37,19 @@ char * dtostre (double val, char *sbeg, unsigned char prec, unsigned char flags) { - __attribute__((progmem)) static const char str_nan[2][4] = + __attribute__((progmem)) static char str_nan[2][4] = {"nan", "NAN"}; - __attribute__((progmem)) static const char str_inf[2][sizeof(str_nan[0])] = + __attribute__((progmem)) static char str_inf[2][sizeof(str_nan[0])] = {"inf", "INF"}; char *d; /* dst */ - const char *s; /* src */ + char *s; /* src */ signed char exp; unsigned char vtype; if (prec > 7) prec = 7; exp = __ftoa_engine (val, sbeg, prec, 0); - d = (char*)(s = sbeg); + d = s = sbeg; vtype = *s++; if ((vtype & FTOA_MINUS) && !(vtype & FTOA_NAN)) /* like 'Glibc' */