From 4d070dbf51e09497e436b1d9d91bd10ea8a72bc6 Mon Sep 17 00:00:00 2001 From: Ron Wein Date: Sun, 19 Feb 2006 07:52:06 +0000 Subject: [PATCH] Small modification to avoid a compilation warning. --- .../test/Boolean_set_operations_2/test_bop.C | 23 +++++++++++++++---- 1 file changed, 18 insertions(+), 5 deletions(-) diff --git a/Boolean_set_operations_2/test/Boolean_set_operations_2/test_bop.C b/Boolean_set_operations_2/test/Boolean_set_operations_2/test_bop.C index 9b0dece4ede..c4c59606876 100644 --- a/Boolean_set_operations_2/test/Boolean_set_operations_2/test_bop.C +++ b/Boolean_set_operations_2/test/Boolean_set_operations_2/test_bop.C @@ -381,18 +381,31 @@ bool test_one_file(std::ifstream& inp) inp >> pwh2; } - bool success; - if(type1 == 0 && type2 ==0) + bool success = false; + + if(type1 == 0 && type2 == 0) + { success = test(inp, p1 ,p2); + } else - if(type1 == 0 && type2 ==1) + { + if(type1 == 0 && type2 == 1) + { success = test(inp, p1 ,pwh2); + } else - if(type1 == 1 && type2 ==0) + { + if(type1 == 1 && type2 == 0) + { success = test(inp, pwh1, p2); + } else - if(type1 == 1 && type2 ==1) + { + if(type1 == 1 && type2 == 1) success = test(inp, pwh1, pwh2); + } + } + } return (success); }