Skip to content

Commit

Permalink
fix build error wang-bin#418
Browse files Browse the repository at this point in the history
  • Loading branch information
wang-bin committed Apr 26, 2015
1 parent 668ed06 commit e6d6c9a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/PacketBuffer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ bool PacketBuffer::isBuffering() const
qreal PacketBuffer::bufferProgress() const
{
const qreal p = qreal(buffered())/qreal(bufferValue());
return qMax(qMin(p, 1.0), 0.0);
return qMax<qreal>(qMin<qreal>(p, 1.0), 0.0);
}

bool PacketBuffer::checkEnough() const
Expand Down

0 comments on commit e6d6c9a

Please sign in to comment.