AndreySV / check_modbus

Nagios plugin for Modbus TCP and Modbus RTU
GNU General Public License v3.0
14 stars 20 forks source link

Fix overflow warning in ranges.c #14

Closed phibos closed 7 years ago

phibos commented 7 years ago

During the build the compiler prints some overflow warnings.

ranges.c: In function ‘parse_range’:
ranges.c:63:21: warning: overflow in implicit constant conversion [-Woverflow]
   range->inverted = 1;
                     ^
ranges.c:108:19: warning: overflow in implicit constant conversion [-Woverflow]
  range->defined = 1;
                   ^

This patch should fix these warnings.

AndreySV commented 7 years ago

Thanks. Merged.