mirror of
				https://github.com/python/cpython.git
				synced 2025-11-03 23:21:29 +00:00 
			
		
		
		
	Some more changes to make code compile under a C++ compiler.
This commit is contained in:
		
							parent
							
								
									7b782b61c5
								
							
						
					
					
						commit
						64182fe0b3
					
				
					 5 changed files with 11 additions and 10 deletions
				
			
		| 
						 | 
				
			
			@ -101,7 +101,7 @@ PyOS_ascii_strtod(const char *nptr, char **endptr)
 | 
			
		|||
		char *copy, *c;
 | 
			
		||||
 | 
			
		||||
		/* We need to convert the '.' to the locale specific decimal point */
 | 
			
		||||
		copy = malloc(end - nptr + 1 + decimal_point_len);
 | 
			
		||||
		copy = (char *)malloc(end - nptr + 1 + decimal_point_len);
 | 
			
		||||
 | 
			
		||||
		c = copy;
 | 
			
		||||
		memcpy(c, nptr, decimal_point_pos - nptr);
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue