]> git.proxmox.com Git - mirror_edk2.git/blobdiff - BaseTools/Source/Python/AutoGen/AutoGen.py
BaseTools: change the Division Operator
[mirror_edk2.git] / BaseTools / Source / Python / AutoGen / AutoGen.py
index f9ce17cf77b480a0c98c89826709e143b0a22e20..5f0da5a81537e752fafb62d5606ec7bb6d65c784 100644 (file)
@@ -3814,7 +3814,7 @@ class ModuleAutoGen(AutoGen):
                         Padding = '0x00, '\r
                         if Unicode:\r
                             Padding = Padding * 2\r
-                            ArraySize = ArraySize / 2\r
+                            ArraySize = ArraySize // 2\r
                         if ArraySize < (len(PcdValue) + 1):\r
                             if Pcd.MaxSizeUserSet:\r
                                 EdkLogger.error("build", AUTOGEN_ERROR,\r