diff options
author | Heinrich Schuchardt <heinrich.schuchardt@canonical.com> | 2024-11-03 06:35:51 +0100 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2024-11-14 10:51:07 -0600 |
commit | 9e7d7f95ecfe0dd94b17c8dddff0e9f4934c2ad2 (patch) | |
tree | 8e759a771801dab61aa2889240bb4f1e9771895a /examples/api/glue.c | |
parent | 2ed26ee37472d48d04cf9c6cc7c3be806d06a900 (diff) |
examples: make glue and demo code compatible with 64-bit
Commit f9886bc60f42 ("Added arm64 assembly for examples/api crt0")
added a 64-bit target for the examples but did not adjust the demo
code to be 64-bit compatible.
Change variable size for pointers.
Use %p to print pointers.
Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
Diffstat (limited to 'examples/api/glue.c')
-rw-r--r-- | examples/api/glue.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/api/glue.c b/examples/api/glue.c index 0aaa82bccb2..478f7b6cfb4 100644 --- a/examples/api/glue.c +++ b/examples/api/glue.c @@ -41,8 +41,8 @@ static int valid_sig(struct api_signature *sig) int api_search_sig(struct api_signature **sig) { unsigned char *sp; - uint32_t search_start = 0; - uint32_t search_end = 0; + uintptr_t search_start = 0; + uintptr_t search_end = 0; if (sig == NULL) return 0; |