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 a crash in constplay exercise #517

Merged
merged 2 commits into from
Mar 28, 2024
Merged

Conversation

hageboeck
Copy link
Contributor

Although the exercise is mostly about battling with the compiler, once people finish this work, they will encounter a crash when running the program.
Here, we init the two pointers to &a and &b to create a runnable program.

@sponce Were the students supposed to fix the crash as well, or should we limit it to "just" compile it and then it should run without errors?

Although the exercise is mostly about battling with the compiler, once
people finish this work, they will encounter a crash when running the
program.
Here, we init the two pointers to &a and &b to create a runnable
program.
@hageboeck hageboeck requested a review from sponce March 28, 2024 15:31
@hageboeck hageboeck self-assigned this Mar 28, 2024
@sponce
Copy link
Contributor

sponce commented Mar 28, 2024

I do not think this exercise was originally intended as something you can run. It was mostly to make the compiler happy.

@sponce sponce merged commit 36caa05 into hsf-training:master Mar 28, 2024
88 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