]> git.ipfire.org Git - thirdparty/gcc.git/blobdiff - libstdc++-v3/testsuite/tr1/5_numerical_facilities/random/subtract_with_carry/cons/gen1.cc
random (class subtract_with_carry_01): Add.
[thirdparty/gcc.git] / libstdc++-v3 / testsuite / tr1 / 5_numerical_facilities / random / subtract_with_carry / cons / gen1.cc
index 717069086aff47ffc1fc4c708d3d98b89f65fab7..cacde1b8e36d58a51bdafdb43a90c915c7efaf9b 100644 (file)
@@ -38,7 +38,7 @@ test01()
   bool test __attribute__((unused)) = true;
   using namespace std::tr1;
 
-  subtract_with_carry<unsigned long, (1 << 24), 10, 24> x(gen);
+  subtract_with_carry<unsigned long, (1UL << 24), 10, 24> x(gen);
   VERIFY( x.min() == 0 );
   VERIFY( x.max() == ((1 << 24) - 1) );
 }