mirror of
https://github.com/overte-org/overte.git
synced 2025-06-26 18:10:37 +02:00
quiet some compiler warnings about signed vs unsigned comparisons
This commit is contained in:
parent
2eeb2a5ec5
commit
c1ae98fa1a
4 changed files with 4 additions and 4 deletions
|
@ -212,7 +212,7 @@ private:
|
||||||
bool _outputStarveDetectionEnabled;
|
bool _outputStarveDetectionEnabled;
|
||||||
quint64 _outputStarveDetectionStartTimeMsec;
|
quint64 _outputStarveDetectionStartTimeMsec;
|
||||||
int _outputStarveDetectionCount;
|
int _outputStarveDetectionCount;
|
||||||
int _outputStarveDetectionPeriodMsec;
|
uint _outputStarveDetectionPeriodMsec;
|
||||||
int _outputStarveDetectionThreshold; // Maximum number of starves per _outputStarveDetectionPeriod before increasing buffer size
|
int _outputStarveDetectionThreshold; // Maximum number of starves per _outputStarveDetectionPeriod before increasing buffer size
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -37,7 +37,7 @@ public:
|
||||||
|
|
||||||
// Semantic and Index types to retreive the JointTrackers of this MotionTracker
|
// Semantic and Index types to retreive the JointTrackers of this MotionTracker
|
||||||
typedef std::string Semantic;
|
typedef std::string Semantic;
|
||||||
typedef int Index;
|
typedef uint Index;
|
||||||
static const Index INVALID_SEMANTIC = -1;
|
static const Index INVALID_SEMANTIC = -1;
|
||||||
static const Index INVALID_PARENT = -2;
|
static const Index INVALID_PARENT = -2;
|
||||||
|
|
||||||
|
|
|
@ -38,7 +38,7 @@ public slots:
|
||||||
private:
|
private:
|
||||||
|
|
||||||
int _deviceTrackerId;
|
int _deviceTrackerId;
|
||||||
int _subTrackerId;
|
uint _subTrackerId;
|
||||||
|
|
||||||
// cache for the spatial
|
// cache for the spatial
|
||||||
SpatialEvent _eventCache;
|
SpatialEvent _eventCache;
|
||||||
|
|
|
@ -175,7 +175,7 @@ Texture::Size Texture::resize(Type type, const Element& texelFormat, uint16 widt
|
||||||
|
|
||||||
// Evaluate the new size with the new format
|
// Evaluate the new size with the new format
|
||||||
const int DIM_SIZE[] = {1, 1, 1, 6};
|
const int DIM_SIZE[] = {1, 1, 1, 6};
|
||||||
int size = DIM_SIZE[_type] *_width * _height * _depth * _numSamples * texelFormat.getSize();
|
uint size = DIM_SIZE[_type] *_width * _height * _depth * _numSamples * texelFormat.getSize();
|
||||||
|
|
||||||
// If size change then we need to reset
|
// If size change then we need to reset
|
||||||
if (changed || (size != getSize())) {
|
if (changed || (size != getSize())) {
|
||||||
|
|
Loading…
Reference in a new issue