author | Alberto Bertogli
<albertito@blitiri.com.ar> 2008-12-07 13:47:24 UTC |
committer | Alberto Bertogli
<albertito@blitiri.com.ar> 2008-12-07 13:47:24 UTC |
parent | a25933b0dc80e3dc730e350537f2ec8689626131 |
bindings/python/nmdb_ll.c | +2 | -2 |
diff --git a/bindings/python/nmdb_ll.c b/bindings/python/nmdb_ll.c index 6bd7139..c4bdd91 100644 --- a/bindings/python/nmdb_ll.c +++ b/bindings/python/nmdb_ll.c @@ -136,7 +136,7 @@ static PyObject *db_cache_get(nmdbobject *db, PyObject *args) /* Miss, handled in the high-level module. */ r = PyLong_FromLong(-1); } else { - r = PyString_FromStringAndSize(val, rv); + r = PyString_FromStringAndSize((char *) val, rv); } free(val); @@ -252,7 +252,7 @@ static PyObject *db_get(nmdbobject *db, PyObject *args) /* Miss, handled in the high-level module. */ r = PyLong_FromLong(-1); } else { - r = PyString_FromStringAndSize(val, rv); + r = PyString_FromStringAndSize((char *) val, rv); } free(val);