fix all sign-compare warnings

This commit is contained in:
Daniel Agar
2018-07-01 09:36:55 +00:00
committed by Lorenz Meier
parent cf74166801
commit 9ce83f2208
54 changed files with 106 additions and 129 deletions
@@ -211,7 +211,7 @@ AirspeedSim::ioctl(device::file_t *filp, int cmd, unsigned long arg)
bool want_start = (_measure_ticks == 0);
/* convert hz to tick interval via microseconds */
unsigned long ticks = USEC2TICK(1000000 / arg);
int ticks = USEC2TICK(1000000 / arg);
/* check against maximum rate */
if (ticks < USEC2TICK(_conversion_interval)) {
@@ -117,7 +117,7 @@ protected:
struct work_s _work;
bool _sensor_ok;
unsigned _measure_ticks;
int _measure_ticks;
bool _collect_phase;
float _diff_pres_offset;
@@ -125,7 +125,7 @@ protected:
int _class_instance;
unsigned _conversion_interval;
int _conversion_interval;
perf_counter_t _sample_perf;
perf_counter_t _comms_errors;