Re: [Boost-bugs] [Boost C++ Libraries] #8160: multiprecision: Number is not assigned after dividing zero by something.

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #8160: multiprecision: Number is not assigned after dividing zero by something.
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2013-02-24 17:27:47


#8160: multiprecision: Number is not assigned after dividing zero by something.
---------------------------------------------------+------------------------
  Reporter: Stepan Podoskin <stepik-777@…> | Owner: johnmaddock
      Type: Bugs | Status: closed
 Milestone: To Be Determined | Component: multiprecision
   Version: Boost 1.53.0 | Severity: Problem
Resolution: fixed | Keywords:
---------------------------------------------------+------------------------

Comment (by Stepan Podoskin <stepik-777@…>):

 I just want to note that comparison with zero here isn't necessary.

 There is:
 {{{
    if((r_order == 0) && (*pr == 0))
 }}}
 And few lines below:
 {{{
    if((r_order == 0) && (*pr < y))
 }}}
 There is no reason to treat zero as some special value, it will be handled
 by second '''if''', so lines 339-345 can be simply removed.

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/8160#comment:4>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:12 UTC