X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Futils_match.c;h=9dd2da7db84a5d11b77adb3cdf1ff34727d99d51;hb=fd4a555fed0d88033e2e5bbe3c84f9847fd1ec22;hp=bdbad3f213155a544b8d06009aa90c7322e7522c;hpb=3d96322c6330132dd67312b72cb62df10a7f09cf;p=collectd.git diff --git a/src/utils_match.c b/src/utils_match.c index bdbad3f2..9dd2da7d 100644 --- a/src/utils_match.c +++ b/src/utils_match.c @@ -160,7 +160,7 @@ static int default_callback (const char __attribute__((unused)) *str, if (matches_num < 2) return (-1); - value = strtoll (matches[1], &endptr, 0); + value = (derive_t) strtoll (matches[1], &endptr, 0); if (matches[1] == endptr) return (-1);