diff options
Diffstat (limited to 'src/data.c')
| -rw-r--r-- | src/data.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/data.c b/src/data.c index ce2d842de44..0f47556fe45 100644 --- a/src/data.c +++ b/src/data.c | |||
| @@ -1770,7 +1770,7 @@ BUFFER defaults to the current buffer. */) | |||
| 1770 | CHECK_SYMBOL (variable); | 1770 | CHECK_SYMBOL (variable); |
| 1771 | sym = indirect_variable (XSYMBOL (variable)); | 1771 | sym = indirect_variable (XSYMBOL (variable)); |
| 1772 | XSETSYMBOL (variable, sym); | 1772 | XSETSYMBOL (variable, sym); |
| 1773 | 1773 | ||
| 1774 | valcontents = sym->value; | 1774 | valcontents = sym->value; |
| 1775 | if (BUFFER_LOCAL_VALUEP (valcontents)) | 1775 | if (BUFFER_LOCAL_VALUEP (valcontents)) |
| 1776 | { | 1776 | { |
| @@ -2353,11 +2353,11 @@ digit_to_number (character, base) | |||
| 2353 | DEFUN ("string-to-number", Fstring_to_number, Sstring_to_number, 1, 2, 0, | 2353 | DEFUN ("string-to-number", Fstring_to_number, Sstring_to_number, 1, 2, 0, |
| 2354 | doc: /* Parse STRING as a decimal number and return the number. | 2354 | doc: /* Parse STRING as a decimal number and return the number. |
| 2355 | This parses both integers and floating point numbers. | 2355 | This parses both integers and floating point numbers. |
| 2356 | It ignores leading spaces and tabs. | 2356 | It ignores leading spaces and tabs, and all trailing chars. |
| 2357 | 2357 | ||
| 2358 | If BASE, interpret STRING as a number in that base. If BASE isn't | 2358 | If BASE, interpret STRING as a number in that base. If BASE isn't |
| 2359 | present, base 10 is used. BASE must be between 2 and 16 (inclusive). | 2359 | present, base 10 is used. BASE must be between 2 and 16 (inclusive). |
| 2360 | If the base used is not 10, floating point is not recognized. */) | 2360 | If the base used is not 10, STRING is always parsed as integer. */) |
| 2361 | (string, base) | 2361 | (string, base) |
| 2362 | register Lisp_Object string, base; | 2362 | register Lisp_Object string, base; |
| 2363 | { | 2363 | { |
| @@ -2392,7 +2392,7 @@ If the base used is not 10, floating point is not recognized. */) | |||
| 2392 | else if (*p == '+') | 2392 | else if (*p == '+') |
| 2393 | p++; | 2393 | p++; |
| 2394 | 2394 | ||
| 2395 | if (isfloat_string (p) && b == 10) | 2395 | if (isfloat_string (p, 1) && b == 10) |
| 2396 | val = make_float (sign * atof (p)); | 2396 | val = make_float (sign * atof (p)); |
| 2397 | else | 2397 | else |
| 2398 | { | 2398 | { |