Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[C++] Redundant decimal point won't cause error #177

Open
Withered-Flower-0422 opened this issue Jul 31, 2024 · 1 comment
Open

[C++] Redundant decimal point won't cause error #177

Withered-Flower-0422 opened this issue Jul 31, 2024 · 1 comment

Comments

@Withered-Flower-0422
Copy link

MM:

]1.1.1
Compiler Error: invalid numeric literal: 1.1.1 [line 1]
]

CMD:

> 1.1.1
1.1
>
@Withered-Flower-0422 Withered-Flower-0422 changed the title Redundant decimal point won't cause error [C++] Redundant decimal point won't cause error Jul 31, 2024
@MineRobber9000
Copy link
Contributor

As discussed in #125, this is because C++ MiniScript uses sscanf with a format string of %1f, which, in addition to parsing 1foo2 as 1, or 1.1.1 as 1.1, inexplicably parses 0xdeadbeef as 3735928559.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants