xend: Cast oos flag to int before arithmetic.

Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
This commit is contained in:
Keir Fraser committed 2009-10-20 08:43:27 +01:00
1 parent 6f8b0338a4
commit 5cee2dafd8
1 file changed
+1 -1
+1 -1
View File
@@ -2421,7 +2421,7 @@ class XendDomainInfo:
s3_integrity = self.info['s3_integrity']
oos = self.info['platform'].get('oos', 1)
oos_off = 1 - oos
oos_off = 1 - int(oos)
flags = (int(hvm) << 0) | (int(hap) << 1) | (int(s3_integrity) << 2) | (int(oos_off) << 3)
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.