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

MicroPythonDxe: Fixed an issue where struct arrays can always access only the attributes of the first element. #268

Open
wants to merge 1 commit into
base: MicroPythonTestFramework
Choose a base branch
from

Conversation

zaixingzhang
Copy link

To get the value of a typespec OrderedDict mem object and
create a pointer to the mem object corresponding to index,
we should pass typespec into the function efi_mem_new_n and
let the efi_mem_typecast function map the entire fields of OrderedDict object,
rather than simply assigning fields after creating the mem object
issue_20211218010904
fixed_issue_20211218011308
.

access only the attributes of the first element.

To get the value of a typespec OrderedDict mem object and
create a pointer to the mem object corresponding to index,
we should pass `typespec` into the function `efi_mem_new_n` and
let the 'efi_mem_typecast' function map the entire fields of OrderedDict object,
rather than simply assigning fields after creating the mem object.
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.

1 participant