Skip to content

Commit

Permalink
Fixing a compiler warning. Re #7954
Browse files Browse the repository at this point in the history
  • Loading branch information
mantid-roman committed Oct 25, 2013
1 parent 37a9649 commit a8dd9e2
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -262,9 +262,9 @@ void ISISLiveEventDataListener::run()
while( nread < events.head_n.nevents )
{
int ntoread = m_socket.available() / static_cast<int>(sizeof(TCPStreamEventNeutron));
if ( ntoread > (events.head_n.nevents - nread) )
if ( ntoread > static_cast<int>(events.head_n.nevents - nread) )
{
ntoread = events.head_n.nevents - nread;
ntoread = static_cast<int>(events.head_n.nevents - nread);
}
if (ntoread > 0)
{
Expand Down

0 comments on commit a8dd9e2

Please sign in to comment.