We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
There's some weird incorrect behavior when defining a function that references top level variables that are declared later in the code:
fun void foo() { // 1 => bar; // <<< bar >>>; <<< baz >>>; } 10 => int bar; SinOsc baz; foo(); samp => now;
this outputs:
-274171104 :(int) // this should be 10 0x556cefa87b20 :(SinOsc|refcount=6)
And doing this:
fun void foo() { 1 => bar; <<< bar >>>; <<< baz >>>; } 10 => int bar; SinOsc baz; foo(); samp => now;
means that bar outputs correctly, but printing baz causes a segfault:
1 :(int) Segmentation fault (core dumped)
Putting foo() after the variable declarations makes the problem go away. Maybe it's something with stack pointers being pushed incorrectly?
foo()
The text was updated successfully, but these errors were encountered:
this has been fixed in 4f27aef (and now tested on the programs above)
Sorry, something went wrong.
gewang
No branches or pull requests
There's some weird incorrect behavior when defining a function that references top level variables that are declared later in the code:
this outputs:
And doing this:
means that bar outputs correctly, but printing baz causes a segfault:
Putting
foo()
after the variable declarations makes the problem go away. Maybe it's something with stack pointers being pushed incorrectly?The text was updated successfully, but these errors were encountered: