mirror of
				https://github.com/python/cpython.git
				synced 2025-10-31 21:51:50 +00:00 
			
		
		
		
	should use macro'ed symbols not direct
Part of source_os2emx.patch in issue 3868 Reviewed by Amaury Forgeot d'Arc
This commit is contained in:
		
							parent
							
								
									29fdcad93d
								
							
						
					
					
						commit
						8c47cabbe9
					
				
					 1 changed files with 3 additions and 3 deletions
				
			
		|  | @ -1339,12 +1339,12 @@ float_fromhex(PyObject *cls, PyObject *arg) | |||
| 		s++; | ||||
| 
 | ||||
| 	/* infinities and nans */ | ||||
| 	if (PyOS_mystrnicmp(s, "nan", 4) == 0) { | ||||
| 	if (PyOS_strnicmp(s, "nan", 4) == 0) { | ||||
| 		x = Py_NAN; | ||||
| 		goto finished; | ||||
| 	} | ||||
| 	if (PyOS_mystrnicmp(s, "inf", 4) == 0 || | ||||
| 	    PyOS_mystrnicmp(s, "infinity", 9) == 0) { | ||||
| 	if (PyOS_strnicmp(s, "inf", 4) == 0 || | ||||
| 	    PyOS_strnicmp(s, "infinity", 9) == 0) { | ||||
| 		x = sign*Py_HUGE_VAL; | ||||
| 		goto finished; | ||||
| 	} | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Andrew MacIntyre
						Andrew MacIntyre