Skip to content

TOML issue: Valid hex values starting with a,e or E causing toml.Null to be returned #12346

Description

@Ekopalypse

OS: windows, Microsoft Windows 7 Professional v7601 64-bit
Processor: 4 cpus, 64bit, little endian, Intel(R) Core(TM) i5-2500 CPU @ 3.30GHz
CC version: Error: exec failed (CreateProcess) with code 2: The system cannot find the file specified.
cmd: cc --version

getwd: C:\Windows\System32
vmodules: d:\ProgramData\Compiler\v\modules
vroot: D:\ProgramData\Compiler\v
vexe: D:\ProgramData\Compiler\v\v.exe
vexe mtime: 2021-10-30 17:46:00
is vroot writable: true
is vmodules writable: true
V full version: V 0.2.4 ef0eaee.612e742

Git version: git version 2.19.1.windows.1
Git vroot status: weekly.2021.43-52-g612e742c-dirty (5 commit(s) behind V master)
.git/config present: true
thirdparty/tcc status: thirdparty-windows-amd64 0f5168cd

What did you do?

test = 0xb

From my naive point of view it looks like deleting the 6 lines of code, starting from here might solve the issue.
And since validation of valid binary, octal and hexadecimal values is done afterwards, deleting theses lines should not be a problem.

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugThis tag is applied to issues which reports bugs.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions