]> git.ipfire.org Git - thirdparty/libvirt.git/commit
util: xml: Reimplement virXPath(U)Int via virXPathEvalString
authorPeter Krempa <pkrempa@redhat.com>
Wed, 5 Oct 2022 11:04:17 +0000 (13:04 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Wed, 2 Nov 2022 08:20:57 +0000 (09:20 +0100)
commit90cb594cf6b67a940fa7892da8b4ed7aae546d49
tree496d0d5b2e55c9cd1aae50d4864210c26fed9723
parentfe4120ec26f8d7d8d4e81d98b5c7e55bb160208d
util: xml: Reimplement virXPath(U)Int via virXPathEvalString

Similarly to the refactor of virXPath(U)LongLong drop the ability to
convert from the internal double value forcing the use of the 'string()'
conversion.

In case of 32 bit integers there's no problem with overflows, but we can
implement the code identically to what we have in the other helpers.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
src/util/virxml.c