mirror of
https://github.com/overte-org/overte.git
synced 2025-07-17 15:36:43 +02:00
fix warnings about signed/unsigned comparison
This commit is contained in:
parent
16a5af1a8e
commit
2faaa5beef
1 changed files with 3 additions and 3 deletions
|
@ -129,7 +129,7 @@ void BandwidthMeter::render(int screenWidth, int screenHeight) {
|
||||||
|
|
||||||
// Determine total
|
// Determine total
|
||||||
float totalIn = 0.0f, totalOut = 0.0f;
|
float totalIn = 0.0f, totalOut = 0.0f;
|
||||||
for (int i = 0; i < N_CHANNELS; ++i) {
|
for (size_t i = 0; i < N_CHANNELS; ++i) {
|
||||||
|
|
||||||
totalIn += inputStream(ChannelIndex(i)).getValue();
|
totalIn += inputStream(ChannelIndex(i)).getValue();
|
||||||
totalOut += outputStream(ChannelIndex(i)).getValue();
|
totalOut += outputStream(ChannelIndex(i)).getValue();
|
||||||
|
@ -205,7 +205,7 @@ void BandwidthMeter::render(int screenWidth, int screenHeight) {
|
||||||
|
|
||||||
// Render bars
|
// Render bars
|
||||||
int xIn = 0, xOut = 0;
|
int xIn = 0, xOut = 0;
|
||||||
for (int i = 0; i < N_CHANNELS; ++i) {
|
for (size_t i = 0; i < N_CHANNELS; ++i) {
|
||||||
|
|
||||||
ChannelIndex chIdx = ChannelIndex(i);
|
ChannelIndex chIdx = ChannelIndex(i);
|
||||||
int wIn = int(barWidth * inputStream(chIdx).getValue() * UNIT_SCALE / scaleMax);
|
int wIn = int(barWidth * inputStream(chIdx).getValue() * UNIT_SCALE / scaleMax);
|
||||||
|
@ -240,7 +240,7 @@ void BandwidthMeter::render(int screenWidth, int screenHeight) {
|
||||||
|
|
||||||
// After rendering, indicate that no data has been sent/received since the last feed.
|
// After rendering, indicate that no data has been sent/received since the last feed.
|
||||||
// This way, the meters fall when not continuously fed.
|
// This way, the meters fall when not continuously fed.
|
||||||
for (int i = 0; i < N_CHANNELS; ++i) {
|
for (size_t i = 0; i < N_CHANNELS; ++i) {
|
||||||
inputStream(ChannelIndex(i)).updateValue(0);
|
inputStream(ChannelIndex(i)).updateValue(0);
|
||||||
outputStream(ChannelIndex(i)).updateValue(0);
|
outputStream(ChannelIndex(i)).updateValue(0);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue