util: conf: Add integer casts

For good measure.
This commit is contained in:
Andrea Bolognani 2016-07-15 18:48:07 +02:00
parent 3742cec81b
commit 1835cd530e

View File

@ -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;
}