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

fix out of range panic #467

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

AdamKorcz
Copy link

Before submitting your PR, please confirm the following.

This fixes an out of range panic.

  • Describe the purpose for which you created this PR.
  • [] Create test code that corresponds to the modification

Signed-off-by: Adam Korczynski <[email protected]>
@codecov-commenter
Copy link

codecov-commenter commented Jul 22, 2024

⚠️ Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 78.77%. Comparing base (237df0e) to head (ac805ee).
Report is 1 commits behind head on master.

❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@           Coverage Diff           @@
##           master     #467   +/-   ##
=======================================
  Coverage   78.77%   78.77%           
=======================================
  Files          13       13           
  Lines        4004     4004           
=======================================
  Hits         3154     3154           
  Misses        591      591           
  Partials      259      259           

@@ -333,7 +333,7 @@ func Integer(tk *token.Token) *IntegerNode {
}
negativePrefix = "-"
} else {
if value[1] == 'o' {
if len(value) >= 2 && value[1] == 'o' {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you add a unit test that reproduce the panic issue?

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

Successfully merging this pull request may close these issues.

3 participants