mirror of
				https://github.com/python/cpython.git
				synced 2025-10-31 21:51:50 +00:00 
			
		
		
		
	Address warnings issued by the MSVC++ compiler
This commit is contained in:
		
							parent
							
								
									462a5495fb
								
							
						
					
					
						commit
						39b0f8976c
					
				
					 4 changed files with 4 additions and 5 deletions
				
			
		|  | @ -193,7 +193,6 @@ PyPcre_compile(self, args) | ||||||
| 	PyObject *dictionary; | 	PyObject *dictionary; | ||||||
| 	char *pattern; | 	char *pattern; | ||||||
| 	const char *error; | 	const char *error; | ||||||
| 	int num_zeros, i, j; |  | ||||||
| 	 | 	 | ||||||
| 	int options, erroroffset; | 	int options, erroroffset; | ||||||
| 	if (!PyArg_ParseTuple(args, "siO!", &pattern, &options, | 	if (!PyArg_ParseTuple(args, "siO!", &pattern, &options, | ||||||
|  |  | ||||||
|  | @ -3044,8 +3044,8 @@ if (md->off_num)    free(md->off_num); | ||||||
| if (md->offset_top) free(md->offset_top);  | if (md->offset_top) free(md->offset_top);  | ||||||
| if (md->r1)         free(md->r1);  | if (md->r1)         free(md->r1);  | ||||||
| if (md->r2)         free(md->r2);  | if (md->r2)         free(md->r2);  | ||||||
| if (md->eptr)       free(md->eptr);  | if (md->eptr)       free((char *)md->eptr);  | ||||||
| if (md->ecode)      free(md->ecode); | if (md->ecode)      free((char *)md->ecode); | ||||||
| return 0; | return 0; | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
|  | @ -858,7 +858,7 @@ find_module(name, path, buf, buflen, p_fp) | ||||||
| 	} | 	} | ||||||
| 	else if (PyString_Check(path)) { | 	else if (PyString_Check(path)) { | ||||||
| 		/* Submodule of frozen package */ | 		/* Submodule of frozen package */ | ||||||
| 		if (PyString_Size(path) + 1 + strlen(name) >= buflen) { | 		if (PyString_Size(path) + 1 + strlen(name) >= (unsigned int)buflen) { | ||||||
| 			PyErr_SetString(PyExc_ImportError, | 			PyErr_SetString(PyExc_ImportError, | ||||||
| 					"full frozen module name too long"); | 					"full frozen module name too long"); | ||||||
| 			return NULL; | 			return NULL; | ||||||
|  |  | ||||||
|  | @ -129,7 +129,7 @@ int		base; | ||||||
| 	result = result * base + c; | 	result = result * base + c; | ||||||
| #ifndef MPW | #ifndef MPW | ||||||
| 	if(base == 10) { | 	if(base == 10) { | ||||||
| 		if(((long)(result - c) / base != temp))	/* overflow */ | 		if(((long)(result - c) / base != (long)temp))	/* overflow */ | ||||||
| 			ovf = 1; | 			ovf = 1; | ||||||
| 	} | 	} | ||||||
| 	else { | 	else { | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Guido van Rossum
						Guido van Rossum