summaryrefslogtreecommitdiff
path: root/graphics/libimg/files/pre-tk84-warnings
blob: 3e152814887cbcbc42b8062c017b677a57fb42a2 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
--- 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);