mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-09 06:25:19 +00:00
util: conf: Add integer casts
For good measure.
This commit is contained in:
parent
3742cec81b
commit
1835cd530e
@ -1126,7 +1126,7 @@ int virConfGetValueInt(virConfPtr conf,
|
|||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
*value = cval->l;
|
*value = (int)cval->l;
|
||||||
|
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
@ -1174,7 +1174,7 @@ int virConfGetValueUInt(virConfPtr conf,
|
|||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
*value = cval->l;
|
*value = (unsigned int)cval->l;
|
||||||
|
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user