Skip to content

Fixed the panic error.#110

Merged
kaidesu merged 1 commit into1.0from
unknown repository
Nov 20, 2022
Merged

Fixed the panic error.#110
kaidesu merged 1 commit into1.0from
unknown repository

Conversation

@ghost
Copy link
Copy Markdown

@ghost ghost commented Nov 20, 2022

panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x28 pc=0x42db55b]

The infix operator was designed to only evaluate string type objects. But the bug was in the conditional. The string type object was evaluated only if the left type object was string. It should be evaluated if the left and right type object was string.

```bash
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x28 pc=0x42db55b]
```

The infix operator was designed to only evaluate string type objects. But the bug was in the conditional. The string type object was evaluated only if the left type object was string. It should be evaluated if the left and right type object was string.
@kaidesu kaidesu merged commit 004a4dd into ghost-language:1.0 Nov 20, 2022
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.

1 participant