diff options
Diffstat (limited to 'tools')
-rw-r--r-- | tools/creative.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/creative.c b/tools/creative.c index 566904f78c..faa95650a4 100644 --- a/tools/creative.c +++ b/tools/creative.c | |||
@@ -84,7 +84,7 @@ static int elf_convert(const unsigned char *inbuf, unsigned char *outbuf) | |||
84 | Elf32_Ehdr *main_header; | 84 | Elf32_Ehdr *main_header; |
85 | Elf32_Shdr *section_header; | 85 | Elf32_Shdr *section_header; |
86 | unsigned int i, j, sum; | 86 | unsigned int i, j, sum; |
87 | int startaddr; | 87 | intptr_t startaddr; |
88 | 88 | ||
89 | main_header = (Elf32_Ehdr*)inbuf; | 89 | main_header = (Elf32_Ehdr*)inbuf; |
90 | if( !( main_header->e_ident[0] == ELFMAG0 && main_header->e_ident[1] == ELFMAG1 | 90 | if( !( main_header->e_ident[0] == ELFMAG0 && main_header->e_ident[1] == ELFMAG1 |
@@ -123,7 +123,7 @@ static int elf_convert(const unsigned char *inbuf, unsigned char *outbuf) | |||
123 | outbuf += section_header->sh_size; | 123 | outbuf += section_header->sh_size; |
124 | } | 124 | } |
125 | } | 125 | } |
126 | return (intptr_t)(outbuf - startaddr); | 126 | return (int)((intptr_t)outbuf - startaddr); |
127 | } | 127 | } |
128 | 128 | ||
129 | static int make_jrm_file(const unsigned char *inbuf, unsigned char *outbuf) | 129 | static int make_jrm_file(const unsigned char *inbuf, unsigned char *outbuf) |