Skip to content

Fix var NULL ptr global and the tests#488

Merged
antocuni merged 2 commits into
spylang:mainfrom
paugier:var-NULL-global
May 12, 2026
Merged

Fix var NULL ptr global and the tests#488
antocuni merged 2 commits into
spylang:mainfrom
paugier:var-NULL-global

Conversation

@paugier

@paugier paugier commented Apr 25, 2026

Copy link
Copy Markdown
Contributor

@antocuni, this is a very simple PR just to fix var BUF: gc_ptr[u8] = gc_ptr[u8].NULL at the global level.

The diff was given by @antocuni in #484 (comment) and I just modified two existing tests.

It seems to me that it is not very useful to have a constant null global pointer so I added var to the related tests, so that they fail.

Is it correct?

@paugier

paugier commented Apr 29, 2026

Copy link
Copy Markdown
Contributor Author

This one is another very small and simple PR. Just slightly modify a test to get the SPy bug and the fix, about a quite evident logic bug (diff by @antocuni).

@antocuni antocuni merged commit 075ed4a into spylang:main May 12, 2026
3 checks passed
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.

2 participants