]> git.proxmox.com Git - mirror_edk2.git/blobdiff - BaseTools/Source/Python/GenFds/Fv.py
BaseTools: change the Division Operator in the expression
[mirror_edk2.git] / BaseTools / Source / Python / GenFds / Fv.py
index 7653cf692ba42c805463162f0dc928d8f50d9f1d..3c3cd0b308042358984aff0a6a3f668a10f9762a 100644 (file)
@@ -212,9 +212,9 @@ class FV (FvClassObject):
                         #The max alignment supported by FFS is 16M.\r
                             self.FvAlignment = "16M"\r
                         else:\r
-                            self.FvAlignment = str(FvAlignmentValue / 0x100000) + "M"\r
+                            self.FvAlignment = str(FvAlignmentValue // 0x100000) + "M"\r
                     else:\r
-                        self.FvAlignment = str(FvAlignmentValue / 0x400) + "K"\r
+                        self.FvAlignment = str(FvAlignmentValue // 0x400) + "K"\r
                 else:\r
                     # FvAlignmentValue is less than 1K\r
                     self.FvAlignment = str (FvAlignmentValue)\r