summaryrefslogtreecommitdiffstats
path: root/generic/tkImgPNG.c
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2023-04-27 16:36:30 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2023-04-27 16:36:30 (GMT)
commit886709b0efe805e1dbb22a9f0dc15464d5ad2687 (patch)
tree0e314646609fedcfb3283b8d38baf10799c798c6 /generic/tkImgPNG.c
parent56b6a915d378f29f324d299e3a2371b3b6da03bc (diff)
downloadtk-886709b0efe805e1dbb22a9f0dc15464d5ad2687.zip
tk-886709b0efe805e1dbb22a9f0dc15464d5ad2687.tar.gz
tk-886709b0efe805e1dbb22a9f0dc15464d5ad2687.tar.bz2
Still missed a few (from previous commit)
Diffstat (limited to 'generic/tkImgPNG.c')
-rw-r--r--generic/tkImgPNG.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/generic/tkImgPNG.c b/generic/tkImgPNG.c
index 7bde11f..499ffed 100644
--- a/generic/tkImgPNG.c
+++ b/generic/tkImgPNG.c
@@ -1810,9 +1810,9 @@ UnfilterLine(
PNGImage *pngPtr)
{
unsigned char *thisLine =
- Tcl_GetByteArrayFromObj(pngPtr->thisLineObj, (int *)NULL);
+ Tcl_GetByteArrayFromObj(pngPtr->thisLineObj, (Tcl_Size *)NULL);
unsigned char *lastLine =
- Tcl_GetByteArrayFromObj(pngPtr->lastLineObj, (int *)NULL);
+ Tcl_GetByteArrayFromObj(pngPtr->lastLineObj, (Tcl_Size *)NULL);
#define PNG_FILTER_NONE 0
#define PNG_FILTER_SUB 1
@@ -1942,7 +1942,7 @@ DecodeLine(
int colStep = 1; /* Column increment each pass */
int pixStep = 0; /* extra pixelPtr increment each pass */
unsigned char lastPixel[6];
- unsigned char *p = Tcl_GetByteArrayFromObj(pngPtr->thisLineObj, (int *)NULL);
+ unsigned char *p = Tcl_GetByteArrayFromObj(pngPtr->thisLineObj, (Tcl_Size *)NULL);
p++;
if (UnfilterLine(interp, pngPtr) == TCL_ERROR) {