public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
* UDK2017 and TCL - Decimal numbers being treated as Octals
@ 2018-09-05  8:05 shraavya malli
  0 siblings, 0 replies; only message in thread
From: shraavya malli @ 2018-09-05  8:05 UTC (permalink / raw)
  To: edk2-devel

Hi all,

I have an EFI Shell tool which uses EDK 1.05 and TCL 8.3 sources. This tool
accepts user commands to display PCI-E adapter information and to upgrade
firmware on it. I recently ported it to UDK2017. I am using VS2012x86
toolchain to build the tool.

When I run the binary from EFI Shell, TCL reports errors such as these.

can't use invalid octal number as operand of "||"
syntax error in expression "(1<<0)"
syntax error in expression "(0x1<<0)"

TCL seems to be treating decimal zeroes as octal numbers. For testing, I
replaced the zeroes in the TCL expressions with 0x0 and I was able to get
rid of few of the syntax errors. This will not work for macros and
expression which are resolved to 0 during runtime.

Since this issue is not being seen with EDK 1.05 code with the same TCL
version, I am wondering if there is any flag I am missing out. Any clues on
such a flag or even suggestions on whether this needs to be debugged from
UEFI side or TCL side is highly appreciated.

Thanks,
Shraavya


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2018-09-05  8:05 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-09-05  8:05 UDK2017 and TCL - Decimal numbers being treated as Octals shraavya malli

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox