diff options
author | Ossama Othman <ossama-othman@users.noreply.github.com> | 2006-10-25 21:47:18 +0000 |
---|---|---|
committer | Ossama Othman <ossama-othman@users.noreply.github.com> | 2006-10-25 21:47:18 +0000 |
commit | 9e54472b75c0818022f49fd20babc5c10af70873 (patch) | |
tree | 5d1fafd0b8a22589b06e512a252ccd0d4e546336 /ACE/tests/Integer_Truncate_Test.cpp | |
parent | ae236587288f1c0819bd536e3cc7704d6efffbc6 (diff) | |
download | ATCD-9e54472b75c0818022f49fd20babc5c10af70873.tar.gz |
ChangeLogTag:Wed Oct 25 22:42:03 UTC 2006 Ossama Othman <ossama_othman at symantec dot com>
Diffstat (limited to 'ACE/tests/Integer_Truncate_Test.cpp')
-rwxr-xr-x | ACE/tests/Integer_Truncate_Test.cpp | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/ACE/tests/Integer_Truncate_Test.cpp b/ACE/tests/Integer_Truncate_Test.cpp index 82ae387211f..f9c60764bca 100755 --- a/ACE/tests/Integer_Truncate_Test.cpp +++ b/ACE/tests/Integer_Truncate_Test.cpp @@ -37,7 +37,7 @@ sizeof_from_lt_sizeof_to (void) ACE_ASSERT (sizeof (from_type) < sizeof (to_type)); - from_type const f = + from_type f = ACE_Numeric_Limits<from_type>::max (); // Should not be truncated. if (Truncate<to_type> (f) != static_cast<to_type> (f)) @@ -57,7 +57,7 @@ sizeof_from_lt_sizeof_to (void) ACE_ASSERT (sizeof (from_type) < sizeof (to_type)); - from_type const f = + from_type f = ACE_Numeric_Limits<from_type>::max (); // Should not be truncated. if (Truncate<to_type> (f) != static_cast<to_type> (f)) @@ -77,8 +77,8 @@ sizeof_from_lt_sizeof_to (void) ACE_ASSERT (sizeof (from_type) < sizeof (to_type)); - from_type const f1 = -1; // Should not be truncated. - from_type const f2 = + from_type f1 = -1; // Should not be truncated. + from_type f2 = ACE_Numeric_Limits<from_type>::max (); // Should not be truncated. if (Truncate<to_type> (f1) != f1 @@ -99,7 +99,7 @@ sizeof_from_lt_sizeof_to (void) ACE_ASSERT (sizeof (from_type) < sizeof (to_type)); - from_type const f = + from_type f = ACE_Numeric_Limits<from_type>::max (); // Should not be truncated. if (Truncate<to_type> (f) != static_cast<to_type> (f)) @@ -136,8 +136,8 @@ sizeof_from_eq_sizeof_to (void) ACE_ASSERT (sizeof (from_type) == sizeof (to_type)); - from_type const f1 = -1; // Should not be truncated. - from_type const f2 = + from_type f1 = -1; // Should not be truncated. + from_type f2 = ACE_Numeric_Limits<from_type>::max (); // Should not be truncated. if (static_cast<from_type> (Truncate<to_type> (f1)) != f1 @@ -158,7 +158,7 @@ sizeof_from_eq_sizeof_to (void) ACE_ASSERT (sizeof (from_type) == sizeof (to_type)); - from_type const f = + from_type f = ACE_Numeric_Limits<from_type>::max (); // Should be truncated. if (Truncate<to_type> (f) != ACE_Numeric_Limits<to_type>::max ()) @@ -178,8 +178,8 @@ sizeof_from_eq_sizeof_to (void) ACE_ASSERT (sizeof (from_type) == sizeof (to_type)); - from_type const f1 = -1; // Should not be truncated. - from_type const f2 = + from_type f1 = -1; // Should not be truncated. + from_type f2 = ACE_Numeric_Limits<from_type>::max (); // Should not be truncated. if (Truncate<to_type> (f1) != f1 @@ -200,7 +200,7 @@ sizeof_from_eq_sizeof_to (void) ACE_ASSERT (sizeof (from_type) == sizeof (to_type)); - from_type const f = + from_type f = ACE_Numeric_Limits<from_type>::max (); // Should not be truncated. if (Truncate<to_type> (f) != f) @@ -237,7 +237,7 @@ sizeof_from_gt_sizeof_to (void) ACE_ASSERT (sizeof (from_type) > sizeof (to_type)); - from_type const f = + from_type f = ACE_Numeric_Limits<from_type>::max (); // Should be truncated. if (Truncate<to_type> (f) != ACE_Numeric_Limits<to_type>::max ()) @@ -257,7 +257,7 @@ sizeof_from_gt_sizeof_to (void) ACE_ASSERT (sizeof (from_type) > sizeof (to_type)); - from_type const f = + from_type f = ACE_Numeric_Limits<from_type>::max (); // Should be truncated. if (Truncate<to_type> (f) != ACE_Numeric_Limits<to_type>::max ()) @@ -277,8 +277,8 @@ sizeof_from_gt_sizeof_to (void) ACE_ASSERT (sizeof (from_type) > sizeof (to_type)); - from_type const f1 = -1; // Should not be truncated. - from_type const f2 = + from_type f1 = -1; // Should not be truncated. + from_type f2 = ACE_Numeric_Limits<from_type>::max (); // Should be truncated. if (Truncate<to_type> (f1) != f1 @@ -299,7 +299,7 @@ sizeof_from_gt_sizeof_to (void) ACE_ASSERT (sizeof (from_type) > sizeof (to_type)); - from_type const f = + from_type f = ACE_Numeric_Limits<from_type>::max (); // Should be truncated. if (Truncate<to_type> (f) != ACE_Numeric_Limits<to_type>::max ()) |