mirror of
				https://github.com/python/cpython.git
				synced 2025-11-04 03:44:55 +00:00 
			
		
		
		
	Sigh. On Windows, (mode_t)i fails. Assume that there's a prototype
in scope on systems where mode_t isn't the same size as int...
This commit is contained in:
		
							parent
							
								
									387b1011a1
								
							
						
					
					
						commit
						ef40e77ac5
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
					@ -698,7 +698,7 @@ posix_chmod(self, args)
 | 
				
			||||||
	if (!PyArg_ParseTuple(args, "si", &path, &i))
 | 
						if (!PyArg_ParseTuple(args, "si", &path, &i))
 | 
				
			||||||
		return NULL;
 | 
							return NULL;
 | 
				
			||||||
	Py_BEGIN_ALLOW_THREADS
 | 
						Py_BEGIN_ALLOW_THREADS
 | 
				
			||||||
	res = chmod(path, (mode_t)i);
 | 
						res = chmod(path, i);
 | 
				
			||||||
	Py_END_ALLOW_THREADS
 | 
						Py_END_ALLOW_THREADS
 | 
				
			||||||
	if (res < 0)
 | 
						if (res < 0)
 | 
				
			||||||
		return posix_error_with_filename(path);
 | 
							return posix_error_with_filename(path);
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue