1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-12 03:00:28 +00:00
freebsd-ports/graphics/libimg/files/pre-tk84-warnings
Martin Wilke 49c5abbf7a - Ready for incoming slaves ports.
- Pass maintainership to submitter
- Respect DOC's
- Add graphics/tiff as dependency
- Bump PORTREVISION

PR:             110221
Submitted by:   Martin Matuska <martin@matuska.org>
2007-03-13 12:12:01 +00:00

39 lines
944 B
Plaintext

--- imgXPM.c Tue Jan 15 16:00:08 2002
+++ imgXPM.c Thu Jun 9 20:33:32 2005
@@ -287,6 +287,6 @@
char buffer[MAX_BUFFER];
int i, isMono;
- int color1;
- unsigned int data;
+ intptr_t color1;
+ uintptr_t data;
Tcl_HashEntry *hPtr;
@@ -466,5 +466,5 @@
for (i = 0; i < width; ) {
- unsigned int col;
+ uintptr_t col;
memcpy((char *) &color1, p, byteSize);
@@ -476,7 +476,7 @@
*/
if (hPtr != (Tcl_HashEntry *)NULL)
- col = (int)Tcl_GetHashValue(hPtr);
+ col = (uintptr_t)Tcl_GetHashValue(hPtr);
else
- col = (int)0;
+ col = 0;
/*
@@ -500,7 +500,7 @@
hPtr = Tcl_FindHashEntry(&colorTable, (char *) color1);
if (hPtr != (Tcl_HashEntry *)NULL)
- col = (int)Tcl_GetHashValue(hPtr);
+ col = (uintptr_t)Tcl_GetHashValue(hPtr);
else
- col = (int)0;
+ col = 0;
}
} while ((i < width) && col);