[Pkg-libvirt-commits] [libguestfs] 166/266: v2v: int64 -> int fix for previous commit.

Hilko Bengen bengen at moszumanska.debian.org
Fri Oct 3 14:41:57 UTC 2014


This is an automated email from the git hooks/post-receive script.

bengen pushed a commit to annotated tag debian/1%1.27.35-1
in repository libguestfs.

commit 066eb6962521015cf82c5e7e773911e3288d2c79
Author: Richard W.M. Jones <rjones at redhat.com>
Date:   Fri Aug 22 09:47:09 2014 +0100

    v2v: int64 -> int fix for previous commit.
    
    This fixes commit 318a1b17a6be2e20245ca05a68448b5dcd048884
    (thanks Pino Toscano).
---
 v2v/input_libvirt.ml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/v2v/input_libvirt.ml b/v2v/input_libvirt.ml
index c2d156e..ffe0c7c 100644
--- a/v2v/input_libvirt.ml
+++ b/v2v/input_libvirt.ml
@@ -60,7 +60,7 @@ object
 
     let dom_type = xpath_to_string "/domain/@type" "" in
     let name = xpath_to_string "/domain/name/text()" "" in
-    let memory = xpath_to_int "/domain/memory/text()" (1024L *^ 1024L) in
+    let memory = xpath_to_int "/domain/memory/text()" (1024 * 1024) in
     let memory = Int64.of_int memory *^ 1024L in
     let vcpu = xpath_to_int "/domain/vcpu/text()" 1 in
     let arch = xpath_to_string "/domain/os/type/@arch" "" in

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-libvirt/libguestfs.git



More information about the Pkg-libvirt-commits mailing list