Commit b7702880 authored by Adrien Béraud's avatar Adrien Béraud
Browse files

use numeric_limits everywhere

parent 7531c4df
......@@ -34,7 +34,6 @@
#include <limits>
#include <cstring>
#include <utility> // for std::pair
//#include "scoped_lock.h"
#include "logger.h"
const char * const MainBuffer::DEFAULT_ID = "audiolayer_id";
......@@ -322,7 +321,7 @@ size_t MainBuffer::availableForGet(const std::string &call_id)
availableSamples = std::min(availableSamples, nbSamples);
}
return availableSamples != INT_MAX ? availableSamples : 0;
return availableSamples != std::numeric_limits<int>::max() ? availableSamples : 0;
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment