}
/* This call returns the time since the last reset_watch call. The time
- is returned as a string with the format <seconds>.<micro-seconds>
+ is returned as a string with the format <seconds>.<micro-seconds>
If reset_watch was not called yet, exit. */
static char *get_time(void)
sz = snprintf(time_string, sizeof(time_string), "%lu.%06lu",
(unsigned long)TV2.tv_sec - TV1.tv_sec,
(unsigned long)TV2.tv_usec - TV1.tv_usec);
- assert(sz>=0 && sz<sizeof(time_string));
+ assert(sz >= 0 && (size_t)sz < sizeof(time_string));
return time_string;
}