]> git.proxmox.com Git - mirror_edk2.git/blobdiff - BaseTools/Source/Python/GenFds/DataSection.py
BaseTools: change the Division Operator
[mirror_edk2.git] / BaseTools / Source / Python / GenFds / DataSection.py
index 28f9b931ca4b5b75f1c6e3c5b8768b0034dae2b0..989e33c43fff56234a60b5ad80c019f58454de42 100644 (file)
@@ -88,9 +88,9 @@ class DataSection (DataSectionClassObject):
             if ImageObj.SectionAlignment < 0x400:\r
                 self.Alignment = str (ImageObj.SectionAlignment)\r
             elif ImageObj.SectionAlignment < 0x100000:\r
-                self.Alignment = str (ImageObj.SectionAlignment / 0x400) + 'K'\r
+                self.Alignment = str (ImageObj.SectionAlignment // 0x400) + 'K'\r
             else:\r
-                self.Alignment = str (ImageObj.SectionAlignment / 0x100000) + 'M'\r
+                self.Alignment = str (ImageObj.SectionAlignment // 0x100000) + 'M'\r
 \r
         NoStrip = True\r
         if self.SecType in (BINARY_FILE_TYPE_TE, BINARY_FILE_TYPE_PE32):\r