X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=lib%2Fpython%2Ftags.c;h=0ff6b329e701d78dffe9780c13744cb8ecd430d8;hb=40f56dc3acf79a5625a33e93f6615e358d649575;hp=2434d440de50efdda15360dd15cdd06b3681ff23;hpb=82710154a148b2debb2ee3cc23f6a55880b847f7;p=swftools.git diff --git a/lib/python/tags.c b/lib/python/tags.c index 2434d44..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); @@ -630,14 +630,14 @@ static PyObject* image_save(PyObject*self, PyObject*args) { tag_internals_t*itag = tag_getinternals(self); if(!image_parse(itag)) - return PY_ERROR("Couldn't parse shape"); + return PY_ERROR("Couldn't parse image"); image_internal_t*fi = (image_internal_t*)itag->data; char*filename = 0; 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; }