From fd1585554b77cef31505cd53e5f9cebbb9916502 Mon Sep 17 00:00:00 2001 From: pjs Date: Thu, 25 Jan 2007 18:56:18 +0000 Subject: [PATCH] fix float overflow checki in printf_fast_f, bug #1525093 git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4597 4a8a32a2-be11-0410-ad9d-d568d2c75423 --- ChangeLog | 3 +++ device/lib/pic16/libsdcc/stack/Makefile | 2 +- device/lib/printf_fast.c | 1 + 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 6b69ebc9..cdcaafbb 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,6 @@ +2007-01-25 Paul Stoffregen + * device/lib/printf_fast.c: fix float overflow check, bug #1525093 + 2007-01-25 Frieder Ferlemann * support/regression/tests/swap.c: 64 bit hosts failed diff --git a/device/lib/pic16/libsdcc/stack/Makefile b/device/lib/pic16/libsdcc/stack/Makefile index 531a6496..fa57137a 100644 --- a/device/lib/pic16/libsdcc/stack/Makefile +++ b/device/lib/pic16/libsdcc/stack/Makefile @@ -1,4 +1,4 @@ -top_builddir = ../../ +top_builddir = ../.. top_srcdir = ../.. srcdir = . diff --git a/device/lib/printf_fast.c b/device/lib/printf_fast.c index 952b9547..71281f4a 100644 --- a/device/lib/printf_fast.c +++ b/device/lib/printf_fast.c @@ -936,6 +936,7 @@ print_float_int: jnc print_float_size_ok printf_float_too_big: // TODO: should print some sort of overflow error?? + pop ar0 ljmp printf_format_loop print_float_size_ok: push dpl -- 2.30.2