[PATCH 3/8] util: conf: Add integer casts

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



For good measure.
---
 src/util/virconf.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/util/virconf.c b/src/util/virconf.c
index 433b57b..2d42227 100644
--- a/src/util/virconf.c
+++ b/src/util/virconf.c
@@ -1126,7 +1126,7 @@ int virConfGetValueInt(virConfPtr conf,
         return -1;
     }
 
-    *value = cval->l;
+    *value = (int)cval->l;
 
     return 1;
 }
@@ -1174,7 +1174,7 @@ int virConfGetValueUInt(virConfPtr conf,
         return -1;
     }
 
-    *value = cval->l;
+    *value = (unsigned int)cval->l;
 
     return 1;
 }
-- 
2.7.4

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list



[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]