From 2c302aa01291ed42727750124a39d5708381b83a Mon Sep 17 00:00:00 2001 From: lemoer Date: Thu, 1 Dec 2016 00:58:40 +0100 Subject: [PATCH] respondd: cast to uint64_t before calculations --- net/respondd/src/respondd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net/respondd/src/respondd.c b/net/respondd/src/respondd.c index 6c8c02a..4335bc6 100644 --- a/net/respondd/src/respondd.c +++ b/net/respondd/src/respondd.c @@ -615,7 +615,7 @@ int main(int argc, char **argv) { exit(EXIT_FAILURE); } - uint64_t max_multicast_delay = 1000 * strtoul(optarg, &endptr, 10); + uint64_t max_multicast_delay = UINT64_C(1000) * strtoul(optarg, &endptr, 10); if (!*optarg || *endptr || max_multicast_delay > INT64_MAX) { fprintf(stderr, "Invalid multicast delay\n"); exit(EXIT_FAILURE);