[GRASS5] compile error in splitfont.c in module for_grass
Moritz Lennert
mlennert at club.worldonline.be
Tue Jul 8 12:12:08 EDT 2003
Glynn Clements said:
>
> Markus Neteler wrote:
>
>> I tried the proposed patch, but it still fails (gcc 3.2.2 on Mandrake
>> 9.1).
>
> A couple of other things to try include:
>
> 1. Change the type of the variable "achar" from char to int (the code
> assumes that achar can hold negative values, but C doesn't specify
> whether char is signed or unsigned).
>
That works. It compiles perfectly now, even with gcc3.2. Thanks !
> 2. Change the second argument to memset() (at line 63) from a
> character literal to an integer literal, i.e.:
>
> memset(map, 0, sizeof(map));
>
> I don't have gcc 3.x, so I can't test any of this.
>
That didn't change anything.
Moritz
More information about the grass-dev
mailing list