[PATCH 11/43] util: xml: Remove double->(u)ll conversion in virXPath(U)LongLong

Ján Tomko jtomko at redhat.com
Mon Oct 24 14:53:30 UTC 2022


On a Monday in 2022, Peter Krempa wrote:
>The conversion from double is not precise enough at the extremes so it
>must not be used.
>
>Spell out that the callers are required to use a string() conversion in
>the XPath expression and remove the code path handling the direct
>conversion from numbers.
>
>Signed-off-by: Peter Krempa <pkrempa at redhat.com>
>---
> src/util/virxml.c | 60 ++++++++++++++---------------------------------
> 1 file changed, 18 insertions(+), 42 deletions(-)
>

Reviewed-by: Ján Tomko <jtomko at redhat.com>

Jano


More information about the libvir-list mailing list