summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorMaurus Cuelenaere <mcuelenaere@gmail.com>2008-05-17 15:51:49 +0000
committerMaurus Cuelenaere <mcuelenaere@gmail.com>2008-05-17 15:51:49 +0000
commit7f67b0aa32893a58e8ba99daf6c9c25e48f18da2 (patch)
treea2ef1b894aeb04af7c815e17cc83befa8ecc9f1e /tools
parent2e1e2190255b0bb74707285e11472747fda64853 (diff)
downloadrockbox-7f67b0aa32893a58e8ba99daf6c9c25e48f18da2.tar.gz
rockbox-7f67b0aa32893a58e8ba99daf6c9c25e48f18da2.tar.bz2
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')
-rw-r--r--tools/creative.c4
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)
Elf32_Ehdr *main_header;
Elf32_Shdr *section_header;
unsigned int i, j, sum;
- int startaddr;
+ intptr_t startaddr;
main_header = (Elf32_Ehdr*)inbuf;
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)
outbuf += section_header->sh_size;
}
}
- return (intptr_t)(outbuf - startaddr);
+ return (int)((intptr_t)outbuf - startaddr);
}
static int make_jrm_file(const unsigned char *inbuf, unsigned char *outbuf)