1
0
Fork 0
mirror of https://github.com/ossrs/srs.git synced 2025-03-09 15:49:59 +00:00

fix the warnings

This commit is contained in:
winlin 2015-10-28 11:58:49 +08:00
parent e9e202dbf1
commit 9ebb77d711
2 changed files with 2 additions and 2 deletions

View file

@ -304,7 +304,7 @@ int SrsKafkaCache::flush(SrsKafkaPartition* partition, int key, SrsKafkaPartitio
}
// remove the messages from cache.
if (pc->size() == nb_msgs) {
if ((int)pc->size() == nb_msgs) {
pc->clear();
} else {
pc->erase(pc->begin(), pc->begin() + nb_msgs);