re PR libstdc++/47913 ([C++0x] improve ratio_add to overflow less often)
authorMarc Glisse <marc.glisse@normalesup.org>
Wed, 2 Mar 2011 14:57:57 +0000 (14:57 +0000)
committerPaolo Carlini <paolo@gcc.gnu.org>
Wed, 2 Mar 2011 14:57:57 +0000 (14:57 +0000)
commit8fddbce4ab902f855472c30dd1c8bb713854e3c4
treea31aaed4cbda3c591759e1f60f825767aebffa4d
parent34161e98f7d52dcd069e70d7ce0b4f4c901eaa1b
re PR libstdc++/47913 ([C++0x] improve ratio_add to overflow less often)

2011-03-02  Marc Glisse  <marc.glisse@normalesup.org>

PR libstdc++/47913
* include/std/ratio (ratio_add): Avoid denominator overflow.
* testsuite/20_util/ratio/operations/47913.cc: New.

From-SVN: r170616
libstdc++-v3/ChangeLog
libstdc++-v3/include/std/ratio
libstdc++-v3/testsuite/20_util/ratio/operations/47913.cc [new file with mode: 0644]