Re: [PATCH embed.c] More warnings

2002-02-01 Thread Andy Dougherty
On Fri, 1 Feb 2002, Jonathan Stowe wrote: > Just some casting stuff: > > --- embed.c~ Fri Feb 1 08:08:31 2002 > +++ embed.c Fri Feb 1 08:12:22 2002 > -program_code = (char*)malloc(program_size + 1024); > +program_code = (char*)malloc((unsigned)program_size + 1024); Umm, if

Re: [PATCH embed.c] More warnings

2002-02-01 Thread Nicholas Clark
On Fri, Feb 01, 2002 at 08:19:10AM +, Jonathan Stowe wrote: > Just some casting stuff: > -program_code = (char*)malloc(program_size + 1024); > +program_code = (char*)malloc((unsigned)program_size + 1024); > -program_code = realloc(program_code, program_size + 1024

[PATCH embed.c] More warnings

2002-02-01 Thread Jonathan Stowe
Just some casting stuff: --- embed.c~Fri Feb 1 08:08:31 2002 +++ embed.c Fri Feb 1 08:12:22 2002 @@ -56,7 +56,7 @@ program_size = 0; -program_code = (char*)malloc(program_size + 1024); +program_code = (char*)malloc((unsigned)program_size + 1024); if (