diff options
author | Maurus Cuelenaere <mcuelenaere@gmail.com> | 2008-05-17 15:51:49 +0000 |
---|---|---|
committer | Maurus Cuelenaere <mcuelenaere@gmail.com> | 2008-05-17 15:51:49 +0000 |
commit | 7f67b0aa32893a58e8ba99daf6c9c25e48f18da2 (patch) | |
tree | a2ef1b894aeb04af7c815e17cc83befa8ecc9f1e /tools/creative.c | |
parent | 2e1e2190255b0bb74707285e11472747fda64853 (diff) | |
download | rockbox-7f67b0aa32893a58e8ba99daf6c9c25e48f18da2.tar.gz rockbox-7f67b0aa32893a58e8ba99daf6c9c25e48f18da2.zip |
Try making binsize smaller and fix pointer problem
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17556 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'tools/creative.c')
-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) |