]> git.ipfire.org Git - thirdparty/libvirt.git/commit
util: xml: Remove double->(u)ll conversion in virXPath(U)LongLong
authorPeter Krempa <pkrempa@redhat.com>
Wed, 5 Oct 2022 07:53:04 +0000 (09:53 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Tue, 1 Nov 2022 12:07:20 +0000 (13:07 +0100)
commitc7c5d65183cd39662ba6eb187f6297bdcd51a295
tree14efec0424d5d40bbe2067efd9d65f1400916f2b
parent713ec722226388d1cb97562c61dea232a75a211e
util: xml: Remove double->(u)ll conversion in virXPath(U)LongLong

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@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
src/util/virxml.c