Use unsigned int for image size
This removes a warning with -Wall.
This commit is contained in:
		
							
								
								
									
										4
									
								
								image.c
									
									
									
									
									
								
							
							
						
						
									
										4
									
								
								image.c
									
									
									
									
									
								
							@@ -733,7 +733,7 @@ getImageSize(ImageCache * cache)
 | 
				
			|||||||
{
 | 
					{
 | 
				
			||||||
    Str tmp;
 | 
					    Str tmp;
 | 
				
			||||||
    FILE *f;
 | 
					    FILE *f;
 | 
				
			||||||
    int w = 0, h = 0;
 | 
					    unsigned int w = 0, h = 0;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    if (!activeImage)
 | 
					    if (!activeImage)
 | 
				
			||||||
	return FALSE;
 | 
						return FALSE;
 | 
				
			||||||
@@ -751,7 +751,7 @@ getImageSize(ImageCache * cache)
 | 
				
			|||||||
    f = popen(tmp->ptr, "r");
 | 
					    f = popen(tmp->ptr, "r");
 | 
				
			||||||
    if (!f)
 | 
					    if (!f)
 | 
				
			||||||
	return FALSE;
 | 
						return FALSE;
 | 
				
			||||||
    while (fscanf(f, "%d %d", &w, &h) < 0) {
 | 
					    while (fscanf(f, "%u %u", &w, &h) < 0) {
 | 
				
			||||||
	if (feof(f))
 | 
						if (feof(f))
 | 
				
			||||||
	    break;
 | 
						    break;
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user