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
Windows
When a struct is used for a pattern-local variable, all fields of the struct appear to have the value of the first field.
Create a new file (or open a random one, doesn't matter) and execute the following pattern:
import std.io; struct Test { u32 a; u32 b; }; fn get_test() { Test ret; ret.a = 100; ret.b = 200; std::print("get_test returning {}, {}", ret.a, ret.b); // Always prints 100, 200 as expected return ret; }; Test t = get_test(); std::print("Global variable: {}, {}", t.a, t.b); // Prints 100, 200 as expected struct Pattern { Test tt = get_test(); std::print("Pattern local variable: {}, {}", tt.a, tt.b); // Prints 100, 100, which is not expected }; Pattern p @ 0;
Expected behavior: All printed messages say 100, 200
100, 200
Actual behavior: The pattern-local variable test prints 100, 100
100, 100
1.37.1
MSI
Also reproduced on 1.35.4.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Operating System
Windows
What's the issue you encountered?
When a struct is used for a pattern-local variable, all fields of the struct appear to have the value of the first field.
How can the issue be reproduced?
Create a new file (or open a random one, doesn't matter) and execute the following pattern:
Expected behavior: All printed messages say
100, 200
Actual behavior: The pattern-local variable test prints
100, 100
ImHex Version
1.37.1
ImHex Build Type
Installation type
MSI
Additional context?
Also reproduced on 1.35.4.
The text was updated successfully, but these errors were encountered: