diff options
| author | paolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4> | 2006-07-14 12:55:15 +0000 |
|---|---|---|
| committer | paolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4> | 2006-07-14 12:55:15 +0000 |
| commit | f24ac6f615cd843f6d876d817b4e930fef88e4c7 (patch) | |
| tree | 3320efe58f14bef26eb98c53b44808c3a493fd22 /libstdc++-v3/include/tr1/random | |
| parent | 32955d674a1242bd4a3faec70dc74d4f12ab14b6 (diff) | |
| download | ppe42-gcc-f24ac6f615cd843f6d876d817b4e930fef88e4c7.tar.gz ppe42-gcc-f24ac6f615cd843f6d876d817b4e930fef88e4c7.zip | |
2006-07-14 Paolo Carlini <pcarlini@suse.de>
* include/tr1/random.tcc (struct _To_Unsigned_Type): Add.
(subtract_with_carry<>::seed(_Gen&, false_type)): Use an
unsigned type in the loop, fix factor multiplier, take g
invocations modulo 2^32.
* include/tr1/random.tcc (subtract_with_carry<>::
seed(unsigned long)): Fix value == 0 special case.
* include/tr1/random (struct _Shift): Fix for large shifts.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@115439 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libstdc++-v3/include/tr1/random')
| -rw-r--r-- | libstdc++-v3/include/tr1/random | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libstdc++-v3/include/tr1/random b/libstdc++-v3/include/tr1/random index f90c8d1e110..58109860371 100644 --- a/libstdc++-v3/include/tr1/random +++ b/libstdc++-v3/include/tr1/random @@ -125,7 +125,7 @@ _GLIBCXX_BEGIN_NAMESPACE(tr1) } template<typename _UIntType, int __w, bool = - __w != std::numeric_limits<_UIntType>::digits> + __w < std::numeric_limits<_UIntType>::digits> struct _Shift { static const _UIntType __value = 0; }; |

