summaryrefslogtreecommitdiffhomepage
path: root/ir/tv
diff options
context:
space:
mode:
authorMatthias Braun <matze@braunis.de>2014-12-31 07:35:38 +0100
committerMatthias Braun <matze@braunis.de>2014-12-31 07:35:42 +0100
commit20a9b7ef7b06fb2deb2ff2309b9e655ee6542e58 (patch)
tree208fae21815bbbce07782e61a69f2032c8ed8760 /ir/tv
parentba9a4e72832b162455053f5f3fb1f652eaa4c557 (diff)
fltcalc: assert that there is enough precision
Diffstat (limited to 'ir/tv')
-rw-r--r--ir/tv/fltcalc.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/ir/tv/fltcalc.c b/ir/tv/fltcalc.c
index b758a91..e70471f 100644
--- a/ir/tv/fltcalc.c
+++ b/ir/tv/fltcalc.c
@@ -1032,8 +1032,7 @@ void init_fltcalc(unsigned precision)
/* needs additionally rounding bits, one bit as explicit 1., and one for
* addition overflow */
max_precision = sc_get_precision() - (2 + ROUNDING_BITS);
- if (max_precision < precision)
- printf("WARNING: not enough precision available, using %u\n", max_precision);
+ assert(max_precision >= precision);
rounding_mode = FC_TONEAREST;
value_size = sc_get_value_length();