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
Given the following pattern:
import std.mem; #pragma array_limit -1 union StringToByteConverter<auto size> { u8 data[size]; str val; }; fn main() { u128 size = 2; auto fileSection = std::mem::create_section("file"); StringToByteConverter<size> converter @ 0x0 in fileSection; converter.val = "a" * size; };
it would be expected for the "file" section to have a size of 0x2. Instead it has a size of 0x40000002.
Moving the code to global scope (so outside of main) resolves this issue.
Issue verified by AxCut on Discord.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Given the following pattern:
it would be expected for the "file" section to have a size of 0x2. Instead it has a size of 0x40000002.
Moving the code to global scope (so outside of main) resolves this issue.
Issue verified by AxCut on Discord.
The text was updated successfully, but these errors were encountered: