diff options
author | dgp <dgp@users.sourceforge.net> | 2019-06-21 12:34:20 (GMT) |
---|---|---|
committer | dgp <dgp@users.sourceforge.net> | 2019-06-21 12:34:20 (GMT) |
commit | 8fb0a9c7c1a87f04f3a5ef5da5d68630709a23b4 (patch) | |
tree | 6bf43a1793cc19fcd5c6c9e98370268383edb3c8 /generic/tkImgSVGnano.c | |
parent | 29eb13819fbe92822a05cd43e696c81b77ce1ac4 (diff) | |
download | tk-8fb0a9c7c1a87f04f3a5ef5da5d68630709a23b4.zip tk-8fb0a9c7c1a87f04f3a5ef5da5d68630709a23b4.tar.gz tk-8fb0a9c7c1a87f04f3a5ef5da5d68630709a23b4.tar.bz2 |
Resolve compiler warnings and segfault in imgListFormat tests.
Diffstat (limited to 'generic/tkImgSVGnano.c')
-rw-r--r-- | generic/tkImgSVGnano.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/generic/tkImgSVGnano.c b/generic/tkImgSVGnano.c index b8776fe..32391ef 100644 --- a/generic/tkImgSVGnano.c +++ b/generic/tkImgSVGnano.c @@ -118,7 +118,7 @@ FileMatchSVG( int *widthPtr, int *heightPtr, Tcl_Interp *interp) { - size_t length; + int length; Tcl_Obj *dataObj = Tcl_NewObj(); const char *data; RastOpts ropts; @@ -178,7 +178,7 @@ FileReadSVG( int width, int height, int srcX, int srcY) { - size_t length; + int length; const char *data; RastOpts ropts; NSVGimage *nsvgImage = GetCachedSVG(interp, chan, formatObj, &ropts); @@ -230,7 +230,7 @@ StringMatchSVG( int *widthPtr, int *heightPtr, Tcl_Interp *interp) { - size_t length; + int length; const char *data; RastOpts ropts; NSVGimage *nsvgImage; @@ -281,7 +281,7 @@ StringReadSVG( int width, int height, int srcX, int srcY) { - size_t length; + int length; const char *data; RastOpts ropts; NSVGimage *nsvgImage = GetCachedSVG(interp, dataObj, formatObj, &ropts); @@ -576,7 +576,7 @@ CacheSVG( NSVGimage *nsvgImage, RastOpts *ropts) { - size_t length; + int length; const char *data; NSVGcache *cachePtr = GetCachePtr(interp); @@ -616,7 +616,7 @@ GetCachedSVG( Tcl_Obj *formatObj, RastOpts *ropts) { - size_t length; + int length; const char *data; NSVGcache *cachePtr = GetCachePtr(interp); NSVGimage *nsvgImage = NULL; |