quiniouben / vban

VBAN protocol open-source implementation
GNU General Public License v3.0
450 stars 63 forks source link

type-limits warning in audio.c #44

Closed NeroBurner closed 4 years ago

NeroBurner commented 4 years ago
/home/nero/repos/vban/src/common/audio.c: In function ‘audio_read’:
/home/nero/repos/vban/src/common/audio.c:261:14: warning: comparison of unsigned expression < 0 is always false [-Wtype-limits]
  261 |     if (size < 0)
      |              ^

edit: github link https://github.com/quiniouben/vban/blob/a2aaf016a67a4a31e2d0aa53eb6833f34154e92e/src/common/audio.c#L260-L265

quiniouben commented 4 years ago

Hi @NeroBurner , thanks, this is fixed.

NeroBurner commented 4 years ago

fixed in https://github.com/quiniouben/vban/commit/03606e69c68974208539b40f8c4411ef96a4c9de just for future reference