On Fri, Feb 01, 2002 at 08:19:10AM +0000, 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); > + program_code = realloc(program_code, (unsigned)program_size + 1024); > - program_code = mmap(0, program_size, PROT_READ, MAP_SHARED, fd, (off_t)0); > + program_code = mmap(0, (unsigned)program_size, PROT_READ, MAP_SHARED, fd, >(off_t)0); > - if(!PackFile_unpack(interpreter, pf, program_code, program_size) ) { > + if(!PackFile_unpack(interpreter, pf, program_code, (unsigned)program_size) ) { Above 4 applied. Thanks. > - fprintf(stderr, "\t%d: %s\n", i, argv[i]); > + fprintf(stderr, "\t%d: %s\n", (int)i, argv[i]); Simon Glover IIRC also sent a patch for this, which I applied IIRC. [sort of random - his was sent later than yours, but for some reason I dealt with it first] Nicholas Clark -- EMCFT http://www.ccl4.org/~nick/CV.html