From 1835cd530ed581b9b8985b57a30b02be3f9981b3 Mon Sep 17 00:00:00 2001 From: Andrea Bolognani Date: Fri, 15 Jul 2016 18:48:07 +0200 Subject: [PATCH] util: conf: Add integer casts For good measure. --- src/util/virconf.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/util/virconf.c b/src/util/virconf.c index 433b57b6e2..2d422277df 100644 --- a/src/util/virconf.c +++ b/src/util/virconf.c @@ -1126,7 +1126,7 @@ int virConfGetValueInt(virConfPtr conf, return -1; } - *value = cval->l; + *value = (int)cval->l; return 1; } @@ -1174,7 +1174,7 @@ int virConfGetValueUInt(virConfPtr conf, return -1; } - *value = cval->l; + *value = (unsigned int)cval->l; return 1; } -- GitLab