1
0
mirror of https://github.com/gnss-sdr/gnss-sdr synced 2024-12-15 04:30:33 +00:00

Make Coverity Scan happy

This commit is contained in:
Carles Fernandez 2018-05-19 23:13:50 +02:00
parent 63dc766308
commit f44508b53f
No known key found for this signature in database
GPG Key ID: 4C583C52B0C3877D

View File

@ -471,7 +471,7 @@ void *rtksvrthread(void *arg)
q = svr->buff[i] + svr->buffsize; q = svr->buff[i] + svr->buffsize;
/* read receiver raw/rtcm data from input stream */ /* read receiver raw/rtcm data from input stream */
if ((n = strread(svr->stream + i, p, q - p)) <= 0) if ((n = strread(svr->stream + i, p, static_cast<int>(q[0]) - static_cast<int>(p[0]))) <= 0)
{ {
continue; continue;
} }