Skip to content

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

Open
zaixingzhang wants to merge 1 commit intotianocore:MicroPythonTestFrameworkfrom
zaixingzhang:MicroPythonTestFramework
Open

MicroPythonDxe: Fixed an issue where struct arrays can always access only the attributes of the first element.#268
zaixingzhang wants to merge 1 commit intotianocore:MicroPythonTestFrameworkfrom
zaixingzhang:MicroPythonTestFramework

Conversation

@zaixingzhang
Copy link
Copy Markdown

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