mirror of
https://github.com/overte-org/overte.git
synced 2025-08-09 16:41:02 +02:00
fix warning about signed/unsigned comparison
This commit is contained in:
parent
12996454f9
commit
5252f22d82
1 changed files with 2 additions and 2 deletions
|
@ -178,7 +178,7 @@ int HandData::decodeRemoteData(const QByteArray& dataByteArray) {
|
||||||
unsigned int numPalms = *sourceBuffer++;
|
unsigned int numPalms = *sourceBuffer++;
|
||||||
|
|
||||||
for (unsigned int handIndex = 0; handIndex < numPalms; ++handIndex) {
|
for (unsigned int handIndex = 0; handIndex < numPalms; ++handIndex) {
|
||||||
if (handIndex >= getNumPalms())
|
if (handIndex >= (unsigned int)getNumPalms())
|
||||||
addNewPalm();
|
addNewPalm();
|
||||||
PalmData& palm = getPalms()[handIndex];
|
PalmData& palm = getPalms()[handIndex];
|
||||||
|
|
||||||
|
@ -196,7 +196,7 @@ int HandData::decodeRemoteData(const QByteArray& dataByteArray) {
|
||||||
palm.setSixenseID(handIndex);
|
palm.setSixenseID(handIndex);
|
||||||
|
|
||||||
for (unsigned int fingerIndex = 0; fingerIndex < numFingers; ++fingerIndex) {
|
for (unsigned int fingerIndex = 0; fingerIndex < numFingers; ++fingerIndex) {
|
||||||
if (fingerIndex < palm.getNumFingers()) {
|
if (fingerIndex < (unsigned int)palm.getNumFingers()) {
|
||||||
FingerData& finger = palm.getFingers()[fingerIndex];
|
FingerData& finger = palm.getFingers()[fingerIndex];
|
||||||
|
|
||||||
glm::vec3 tipPosition;
|
glm::vec3 tipPosition;
|
||||||
|
|
Loading…
Reference in a new issue