[GRASS-dev] string madness

Glynn Clements glynn at gclements.plus.com
Sat Mar 17 15:05:03 EDT 2007


Daniel Calvelo wrote:

> Don't you get a warning when compiling? sqlite3_column_text() returns
> a const unsigned char * and db_set_string expects a plain char *. My
> guess is casting problems.

On all common platforms, casts between various permutations of
const and unsigned char pointers are harmless.

In order for this to matter, the compiler would have to store
const/mutable or signed/unsigned chars differently, which isn't the
case for any platform on which GRASS is likely to run.

-- 
Glynn Clements <glynn at gclements.plus.com>




More information about the grass-dev mailing list