likle / cwalk

Path library for C/C++. Cross-Platform for Linux, FreeBSD, Windows and MacOS. Supports UNIX and Windows path styles on those platforms.
https://likle.github.io/cwalk/
MIT License
250 stars 39 forks source link

Fix signedness warnings in tests #3

Closed forGGe closed 5 years ago

forGGe commented 5 years ago

Following warnings prevent me from compiling lib with -Werror:

relative_test.c: In function ‘relative_check’:
relative_test.c:18:17: error: comparison of integer expressions of different signedness: ‘int’ and ‘long unsigned int’ [-Werror=sign-compare]
   18 |   for (i = 0; i < ARRAY_SIZE(relative_paths); ++i) {
      |                 ^
relative_test.c:24:17: error: comparison of integer expressions of different signedness: ‘int’ and ‘long unsigned int’ [-Werror=sign-compare]
   24 |   for (i = 0; i < ARRAY_SIZE(absolute_paths); ++i) {
codecov-io commented 5 years ago

Codecov Report

Merging #3 into master will not change coverage. The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master       #3   +/-   ##
=======================================
  Coverage   97.99%   97.99%           
=======================================
  Files           1        1           
  Lines         448      448           
=======================================
  Hits          439      439           
  Misses          9        9

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update 27e19eb...24e2439. Read the comment docs.

likle commented 5 years ago

@forGGe, thanks a lot for contributing!

forGGe commented 5 years ago

You're welcome!