septag / dmon

Single header C99 portable library for monitoring filesystem changes. (Windows/Linux/MacOS)
BSD 2-Clause "Simplified" License
235 stars 19 forks source link

Fix an unsigned warning #32

Closed mwestphal closed 6 months ago

mwestphal commented 6 months ago

Fix the following warning:

/home/glow/dev/f3d/f3d/src/external/dmon/dmon.h:869:57: warning: narrowing conversion of ‘(256 | (is_dir ? 1073741824 : 0))’ from ‘int’ to ‘uint32_t’ {aka ‘unsigned int’} [-Wnarrowing]
  869 |             dmon__inotify_event dev = { { 0 }, IN_CREATE|(is_dir ? IN_ISDIR : 0), 0, watch->id, false };
      |                                                         ^
^Cmake[2]: *** [application/CMakeFiles/f3d.dir/build.make:126: application/CMakeFiles/f3d.dir/F3D, 0, watch->id, false };
mwestphal commented 6 months ago

@septag ?

septag commented 6 months ago

sorry. missed this

septag commented 6 months ago

thanks btw

mwestphal commented 6 months ago

Thanks for the merge!