More fixes for clang & gcc

C++14 issues, I think.
This commit is contained in:
Simon Walton 2018-07-27 11:34:08 -07:00
parent 4d559bbaee
commit 3d390203e2
2 changed files with 3 additions and 3 deletions

View file

@ -5475,7 +5475,7 @@ void Application::update(float deltaTime) {
// we haven't yet enabled physics. we wait until we think we have all the collision information
// for nearby entities before starting bullet up.
quint64 now = usecTimestampNow();
const int PHYSICS_CHECK_TIMEOUT = 2 * USECS_PER_SECOND;
//const int PHYSICS_CHECK_TIMEOUT = 2 * USECS_PER_SECOND;
auto entityTreeRenderer = getEntities();
if (entityTreeRenderer && _octreeProcessor.octreeSequenceIsComplete(entityTreeRenderer->getLastOctreeMessageSequence()) ) {
/*if (now - _lastPhysicsCheckTime > PHYSICS_CHECK_TIMEOUT || _fullSceneReceivedCounter > _fullSceneCounterAtLastPhysicsCheck) {*/

View file

@ -130,8 +130,8 @@ void OctreePacketProcessor::resetCompletionSequenceNumber() {
}
namespace {
template<typename T> constexpr bool lessThanWraparound(int a, int b) {
static const int MAX_T_VALUE = std::numeric_limits<T>::max();
template<typename T> bool lessThanWraparound(int a, int b) {
constexpr int MAX_T_VALUE = std::numeric_limits<T>::max();
if (b < a) {
b += MAX_T_VALUE;
}