mirror of
https://github.com/xen-project/xen.git
synced 2026-10-28 10:11:27 +01:00
xend: Cast oos flag to int before arithmetic.
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
This commit is contained in:
1 parent
6f8b0338a4
commit
5cee2dafd8
1 file changed
+1
-1
@@ -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)
|
||||
|
||||
|
||||