itsapi / pycraft

A Minecraft-inspired game for the terminal
GNU General Public License v2.0
198 stars 21 forks source link

fix int to size_t comparison by casting int to size_t #150

Closed isidentical closed 4 years ago

isidentical commented 4 years ago
(.venv) [ 10:00ÖÖ ]  [ isidentical@x200:~/pycraft(master✔) ]
 $ python setup.py build
running build
running build_ext
building 'render_c' extension
creating build
creating build/temp.linux-x86_64-3.9-pydebug
gcc -pthread -Wno-unused-result -Wsign-compare -g -Og -Wall -fPIC -I/home/isidentical/.venv/include -I/usr/local/include/python3.9d -c render_c_module.c -o build/temp.linux-x86_64-3.9-pydebug/render_c_module.o
render_c_module.c: In function ‘render_map’:
render_c_module.c:1026:31: warning: comparison of integer expressions of different signedness: ‘int’ and ‘size_t’ {aka ‘long unsigned int’} [-Wsign-compare]
 1026 |         if (n_wprintf_written != frame.cur_pos)
      |                               ^~