X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=BaseTools%2FSource%2FPython%2FAutoGen%2FGenC.py;h=3e98506cc80774b57e1accf978e5b00fb161ebe9;hb=726c501c2c9a1ef103fab7846e2d1a34506715d8;hp=6b95cd47c2c235a8c7b081861de2e6e972b9ad95;hpb=68ba919f7858830cc764b46a00da7e7fdcd1f3ec;p=mirror_edk2.git diff --git a/BaseTools/Source/Python/AutoGen/GenC.py b/BaseTools/Source/Python/AutoGen/GenC.py index 6b95cd47c2..3e98506cc8 100644 --- a/BaseTools/Source/Python/AutoGen/GenC.py +++ b/BaseTools/Source/Python/AutoGen/GenC.py @@ -1033,6 +1033,8 @@ def CreateModulePcdCode(Info, AutoGenC, AutoGenH, Pcd): if Pcd.DatumType in ['UINT64', 'UINT32', 'UINT16', 'UINT8']: try: + if Value.upper().endswith('L'): + Value = Value[:-1] if Value.upper().startswith('0X'): ValueNumber = int (Value, 16) else: