Re: [Boost-bugs] [Boost C++ Libraries] #4847: tweaking the memoized fibonnacci to produce > 40 number give strange results

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #4847: tweaking the memoized fibonnacci to produce > 40 number give strange results
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2010-11-13 10:31:09


#4847: tweaking the memoized fibonnacci to produce > 40 number give strange
results
----------------------------------------------------------+-----------------
  Reporter: sylvain foubert <sylvain.foubert@…> | Owner: joaquin
      Type: Bugs | Status: closed
 Milestone: To Be Determined | Component: flyweight
   Version: Boost 1.44.0 | Severity: Problem
Resolution: invalid | Keywords: example fibonacci
----------------------------------------------------------+-----------------
Changes (by joaquin):

  * status: new => closed
  * resolution: => invalid

Comment:

 Hi Sylvain,

 Looks like in your platform `unsigned long` is 32 bits, and since F(48) >
 2^32^ you're incurring overflow, hence the bogus results.

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/4847#comment:1>
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:04 UTC