X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=lib%2Fpython%2Ftags.c;h=0ff6b329e701d78dffe9780c13744cb8ecd430d8;hb=d4aa5c790124fabac817e0fb50cc2c7b2e7fa629;hp=3683673c9670d2dda2a66e3ce389e05d3de00472;hpb=dd1bf09dad3b85a6e97063d9e54370643d4bd11a;p=swftools.git diff --git a/lib/python/tags.c b/lib/python/tags.c index 3683673..0ff6b32 100644 --- a/lib/python/tags.c +++ b/lib/python/tags.c @@ -186,7 +186,7 @@ static PyObject* po_create(PyObject* self, PyObject* args, PyObject* kwargs,char po->depth = depth; po->clipdepth = clipdepth; po->ratio = ratio; - po->name = name; + po->name = (unsigned char*)name; po->move = move; if(clipdepth) po->clipdepth = clipdepth; if(matrix) po->matrix = matrix_getMatrix(matrix); @@ -637,7 +637,7 @@ static PyObject* image_save(PyObject*self, PyObject*args) if(!PyArg_ParseTuple(args, "s", &filename)) return NULL; - writePNG(filename, fi->rgba ,fi->width, fi->height); + writePNG(filename, (unsigned char*)fi->rgba ,fi->width, fi->height); return PY_NONE; }