Commit c8ece60b authored by David Gobbi's avatar David Gobbi
Browse files

COMP: Fix TestSmartPointer warning on MSVC.

Change-Id: I0564a3210d24138b0be15cefa57d1d6e2a31e539
parent 46216c38
......@@ -43,30 +43,30 @@ int TestSmartPointer(int,char *[])
vtkSmartPointer<vtkDataArray> da1(da2);
da1 = ia;
da1 = da2;
testbits = (testbits << 1) | (da2 == da3);
testbits = (testbits << 1) | (da2 != da3);
testbits = (testbits << 1) | (da2 < da3);
testbits = (testbits << 1) | (da2 <= da3);
testbits = (testbits << 1) | (da2 > da3);
testbits = (testbits << 1) | (da2 >= da3);
testbits = (testbits << 1) | (ia == da3);
testbits = (testbits << 1) | (ia != da3);
testbits = (testbits << 1) | (ia < da3);
testbits = (testbits << 1) | (ia <= da3);
testbits = (testbits << 1) | (ia > da3);
testbits = (testbits << 1) | (ia >= da3);
testbits = (testbits << 1) | (da2 == ia);
testbits = (testbits << 1) | (da2 != ia);
testbits = (testbits << 1) | (da2 < ia);
testbits = (testbits << 1) | (da2 <= ia);
testbits = (testbits << 1) | (da2 > ia);
testbits = (testbits << 1) | (da2 >= ia);
testbits = (testbits << 1) | (da1 == 0);
testbits = (testbits << 1) | (da1 != 0);
testbits = (testbits << 1) | (da1 < 0);
testbits = (testbits << 1) | (da1 <= 0);
testbits = (testbits << 1) | (da1 > 0);
testbits = (testbits << 1) | (da1 >= 0);
testbits = (testbits << 1) | ((da2 == da3) ? 1 : 0);
testbits = (testbits << 1) | ((da2 != da3) ? 1 : 0);
testbits = (testbits << 1) | ((da2 < da3) ? 1 : 0);
testbits = (testbits << 1) | ((da2 <= da3) ? 1 : 0);
testbits = (testbits << 1) | ((da2 > da3) ? 1 : 0);
testbits = (testbits << 1) | ((da2 >= da3) ? 1 : 0);
testbits = (testbits << 1) | ((ia == da3) ? 1 : 0);
testbits = (testbits << 1) | ((ia != da3) ? 1 : 0);
testbits = (testbits << 1) | ((ia < da3) ? 1 : 0);
testbits = (testbits << 1) | ((ia <= da3) ? 1 : 0);
testbits = (testbits << 1) | ((ia > da3) ? 1 : 0);
testbits = (testbits << 1) | ((ia >= da3) ? 1 : 0);
testbits = (testbits << 1) | ((da2 == ia) ? 1 : 0);
testbits = (testbits << 1) | ((da2 != ia) ? 1 : 0);
testbits = (testbits << 1) | ((da2 < ia) ? 1 : 0);
testbits = (testbits << 1) | ((da2 <= ia) ? 1 : 0);
testbits = (testbits << 1) | ((da2 > ia) ? 1 : 0);
testbits = (testbits << 1) | ((da2 >= ia) ? 1 : 0);
testbits = (testbits << 1) | ((da1 == 0) ? 1 : 0);
testbits = (testbits << 1) | ((da1 != 0) ? 1 : 0);
testbits = (testbits << 1) | ((da1 < 0) ? 1 : 0);
testbits = (testbits << 1) | ((da1 <= 0) ? 1 : 0);
testbits = (testbits << 1) | ((da1 > 0) ? 1 : 0);
testbits = (testbits << 1) | ((da1 >= 0) ? 1 : 0);
if (testbits != correctbits)
{
unsigned int diffbits = (testbits ^ correctbits);
......
......@@ -43,30 +43,30 @@ int TestWeakPointer(int,char *[])
vtkWeakPointer<vtkDataArray> da1(da2);
da1 = ia;
da1 = da2;
testbits = (testbits << 1) | (da2 == da3);
testbits = (testbits << 1) | (da2 != da3);
testbits = (testbits << 1) | (da2 < da3);
testbits = (testbits << 1) | (da2 <= da3);
testbits = (testbits << 1) | (da2 > da3);
testbits = (testbits << 1) | (da2 >= da3);
testbits = (testbits << 1) | (ia == da3);
testbits = (testbits << 1) | (ia != da3);
testbits = (testbits << 1) | (ia < da3);
testbits = (testbits << 1) | (ia <= da3);
testbits = (testbits << 1) | (ia > da3);
testbits = (testbits << 1) | (ia >= da3);
testbits = (testbits << 1) | (da2 == ia);
testbits = (testbits << 1) | (da2 != ia);
testbits = (testbits << 1) | (da2 < ia);
testbits = (testbits << 1) | (da2 <= ia);
testbits = (testbits << 1) | (da2 > ia);
testbits = (testbits << 1) | (da2 >= ia);
testbits = (testbits << 1) | (da1 == 0);
testbits = (testbits << 1) | (da1 != 0);
testbits = (testbits << 1) | (da1 < 0);
testbits = (testbits << 1) | (da1 <= 0);
testbits = (testbits << 1) | (da1 > 0);
testbits = (testbits << 1) | (da1 >= 0);
testbits = (testbits << 1) | ((da2 == da3) ? 1 : 0);
testbits = (testbits << 1) | ((da2 != da3) ? 1 : 0);
testbits = (testbits << 1) | ((da2 < da3) ? 1 : 0);
testbits = (testbits << 1) | ((da2 <= da3) ? 1 : 0);
testbits = (testbits << 1) | ((da2 > da3) ? 1 : 0);
testbits = (testbits << 1) | ((da2 >= da3) ? 1 : 0);
testbits = (testbits << 1) | ((ia == da3) ? 1 : 0);
testbits = (testbits << 1) | ((ia != da3) ? 1 : 0);
testbits = (testbits << 1) | ((ia < da3) ? 1 : 0);
testbits = (testbits << 1) | ((ia <= da3) ? 1 : 0);
testbits = (testbits << 1) | ((ia > da3) ? 1 : 0);
testbits = (testbits << 1) | ((ia >= da3) ? 1 : 0);
testbits = (testbits << 1) | ((da2 == ia) ? 1 : 0);
testbits = (testbits << 1) | ((da2 != ia) ? 1 : 0);
testbits = (testbits << 1) | ((da2 < ia) ? 1 : 0);
testbits = (testbits << 1) | ((da2 <= ia) ? 1 : 0);
testbits = (testbits << 1) | ((da2 > ia) ? 1 : 0);
testbits = (testbits << 1) | ((da2 >= ia) ? 1 : 0);
testbits = (testbits << 1) | ((da1 == 0) ? 1 : 0);
testbits = (testbits << 1) | ((da1 != 0) ? 1 : 0);
testbits = (testbits << 1) | ((da1 < 0) ? 1 : 0);
testbits = (testbits << 1) | ((da1 <= 0) ? 1 : 0);
testbits = (testbits << 1) | ((da1 > 0) ? 1 : 0);
testbits = (testbits << 1) | ((da1 >= 0) ? 1 : 0);
if (testbits != correctbits)
{
unsigned int diffbits = (testbits ^ correctbits);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment