Skip to content

Commit

Permalink
Fix compiler warnings on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
rrwick committed Aug 31, 2015
1 parent 6c8f9d4 commit 1a50d66
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions blast/blastqueries.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ void BlastQueries::addQuery(BlastQuery * newQuery)
newQuery->setName(getUniqueName(newQuery->getName()));

//Give the new query a colour
int colourIndex = m_queries.size();
int colourIndex = int(m_queries.size());
colourIndex %= presetColours.size();
newQuery->setColour(presetColours[colourIndex]);

Expand Down Expand Up @@ -166,7 +166,7 @@ void BlastQueries::clearSearchResults()

int BlastQueries::getQueryCount()
{
return m_queries.size();
return int(m_queries.size());
}

int BlastQueries::getQueryCount(SequenceType sequenceType)
Expand Down
4 changes: 2 additions & 2 deletions graph/assemblygraph.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1343,7 +1343,7 @@ void AssemblyGraph::setAllEdgesExactOverlap(int overlap)

void AssemblyGraph::autoDetermineAllEdgesExactOverlap()
{
int edgeCount = m_deBruijnGraphEdges.size();
int edgeCount = int(m_deBruijnGraphEdges.size());
if (edgeCount == 0)
return;

Expand Down Expand Up @@ -1377,7 +1377,7 @@ void AssemblyGraph::autoDetermineAllEdgesExactOverlap()
{
if (overlapCounts[i] > mostCommonOverlapCount)
{
mostCommonOverlap = i;
mostCommonOverlap = int(i);
mostCommonOverlapCount = overlapCounts[i];
}
}
Expand Down

0 comments on commit 1a50d66

Please sign in to comment.