Celtoys / Remotery

Single C file, Realtime CPU/GPU Profiler with Remote Web Viewer
Apache License 2.0
3.11k stars 264 forks source link

Fix sign-compare warnings #184

Closed aganm closed 2 years ago

aganm commented 2 years ago

Fixes these warnings:


../../lib/Remotery/lib/Remotery.c: In function ‘SampleThreadsLoop’:
../../lib/Remotery/lib/Remotery.c:5712:33: warning: comparison of integer expressions of different signedness: ‘rmtU32’ {aka ‘unsigned int’} and ‘int’ [-Wsign-compare]
 5712 |             if (processor_index != -1)
      |                                 ^~
../../lib/Remotery/lib/Remotery.c:5788:42: warning: comparison of integer expressions of different signedness: ‘rmtU32’ {aka ‘unsigned int’} and ‘int’ [-Wsign-compare]
 5788 |                 if (last_processor_index != -1 && last_processor_index != processor_index)
      |```