mirror of
				https://github.com/python/cpython.git
				synced 2025-11-04 03:44:55 +00:00 
			
		
		
		
	I've had complaints about the comparison "where >= 0" before -- on
IRIX, it doesn't even compile. Added a cast: "where >= (char *)0".
This commit is contained in:
		
							parent
							
								
									2581764f21
								
							
						
					
					
						commit
						e110dcfa86
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
					@ -118,7 +118,7 @@ mmap_read_byte_method (mmap_object * self,
 | 
				
			||||||
	char value;
 | 
						char value;
 | 
				
			||||||
	char * where = (self->data+self->pos);
 | 
						char * where = (self->data+self->pos);
 | 
				
			||||||
	CHECK_VALID(NULL);
 | 
						CHECK_VALID(NULL);
 | 
				
			||||||
	if ((where >= 0) && (where < (self->data+self->size))) {
 | 
						if ((where >= (char *)0) && (where < (self->data+self->size))) {
 | 
				
			||||||
		value = (char) *(where);
 | 
							value = (char) *(where);
 | 
				
			||||||
		self->pos += 1;
 | 
							self->pos += 1;
 | 
				
			||||||
		return Py_BuildValue("c", (char) *(where));
 | 
							return Py_BuildValue("c", (char) *(where));
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue