Fix strtod("nan()", ptr).
* libc/stdlib/gdtoa-hexnan.c (hexnan): When the optional n-char-sequence is omitted, still parse the (). -------------------------------------------------------------------
This commit is contained in:
		| @@ -1,3 +1,9 @@ | |||||||
|  | 2008-03-04  Eric Blake  <ebb9@byu.net> | ||||||
|  |  | ||||||
|  | 	Fix strtod("nan()", ptr). | ||||||
|  | 	* libc/stdlib/gdtoa-hexnan.c (hexnan): When the optional | ||||||
|  | 	n-char-sequence is omitted, still parse the (). | ||||||
|  |  | ||||||
| 2008-03-03  Eric Blake  <ebb9@byu.net> | 2008-03-03  Eric Blake  <ebb9@byu.net> | ||||||
|  |  | ||||||
| 	Fix ftell bug after ungetc. | 	Fix ftell bug after ungetc. | ||||||
|   | |||||||
| @@ -98,7 +98,7 @@ _DEFUN (hexnan, (sp, fpi, x0), | |||||||
| 					} | 					} | ||||||
| 				continue; | 				continue; | ||||||
| 				} | 				} | ||||||
| 			if (/*(*/ c == ')' && havedig) { | 			if (/*(*/ c == ')') { | ||||||
| 				*sp = s + 1; | 				*sp = s + 1; | ||||||
| 				break; | 				break; | ||||||
| 				} | 				} | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user