[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

[PATCH 10/10] cast to the type of rhs operand of a comparison operator



From: Andrei Zavada <johnhommer@gmail.com>

---
 .../projects/library/seqan/refinement/graph_impl_interval_tree.h  | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/mugsy-seqan/projects/library/seqan/refinement/graph_impl_interval_tree.h b/mugsy-seqan/projects/library/seqan/refinement/graph_impl_interval_tree.h
index d924dd5..4474b8d 100644
--- a/mugsy-seqan/projects/library/seqan/refinement/graph_impl_interval_tree.h
+++ b/mugsy-seqan/projects/library/seqan/refinement/graph_impl_interval_tree.h
@@ -718,10 +718,10 @@ SEQAN_CHECKPOINT
 	{
 		TOutEdgeIterator it(g, act_knot);
 		act_prop = property(pm,act_knot);
-		if(act_prop.center < query)
+		if(act_prop.center < (typeof act_prop.center)query)
 		{
 			unsigned int i = 0;
-			while(i < length(act_prop.list2) && rightBoundary(value(act_prop.list2,i)) > query)
+			while(i < length(act_prop.list2) && (typeof query)rightBoundary(value(act_prop.list2,i)) > query)
 			{
 				appendValue(result,cargo(value(act_prop.list2,i)));
 				++i;	
@@ -738,10 +738,10 @@ SEQAN_CHECKPOINT
 			act_knot = targetVertex(it);
 		}
 		else{
-			if(query < act_prop.center)
+			if(query < (typeof query)act_prop.center)
 			{
 				unsigned int i = 0;
-				while(i < length(act_prop.list1) && leftBoundary(value(act_prop.list1,i)) <= query)
+				while(i < length(act_prop.list1) && (typeof query)leftBoundary(value(act_prop.list1,i)) <= query)
 				{
 					appendValue(result,cargo(value(act_prop.list1,i)));
 					++i;
-- 
2.3.5


Reply to: