Skip to content
Snippets Groups Projects
Unverified Commit 6a07442c authored by Simon Kirsten's avatar Simon Kirsten
Browse files

Fix param size (uint16_t)

parent bedf45fd
No related branches found
No related tags found
No related merge requests found
......@@ -59,7 +59,7 @@ typedef struct _cricket_param_info
uint16_t index;
uint16_t ordinal;
uint16_t offset;
uint8_t size;
uint16_t size;
} cricket_param_info;
typedef struct _cricket_elf_info
......
......@@ -381,7 +381,7 @@ bool cricket_elf_get_info(const char *function_name, cricket_elf_info *info)
info->params[i].index = *(uint16_t *)(attrs + 4 + i * 12);
info->params[i].offset = *(uint16_t *)(attrs + 6 + i * 12);
info->params[i].size =
*(uint8_t *)(attrs + 10 + i * 12) >> 2;
*(uint16_t *)(attrs + 10 + i * 12) >> 2;
}
free(attrs);
if (!cricket_elf_extract_attribute((*objfile)->obfd, section,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment