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 you're going to cast, you ought to do it to the correct type,
namesly size_t.  (I don't think size_t is guaranteed to be the same as
unsigned int, but I could be wrong.  In any case, the prototype is for
size_t, so you might as well use that.)

-- 
    Andy Dougherty              [EMAIL PROTECTED]


Reply via email to