diff options
author | monty@mysql.com <> | 2005-02-22 12:51:23 +0200 |
---|---|---|
committer | monty@mysql.com <> | 2005-02-22 12:51:23 +0200 |
commit | e2dc9b4099b12ade3553498b9929928c0598de49 (patch) | |
tree | af26a8ec65a080dd408d6df18990ff71c50577aa /include | |
parent | b902a66e274f999d078af43804a8e1e109e5fe36 (diff) | |
download | mariadb-git-e2dc9b4099b12ade3553498b9929928c0598de49.tar.gz |
Backport my_strntod() from 5.0
Change string->float conversion to delay division as long as possible.
This gives us more exact integer->float conversion for numbers of type '123.45E+02' (Bug #7740)
Diffstat (limited to 'include')
-rw-r--r-- | include/m_string.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/m_string.h b/include/m_string.h index 97d34421537..d3465363beb 100644 --- a/include/m_string.h +++ b/include/m_string.h @@ -215,7 +215,7 @@ extern char *strstr(const char *, const char *); extern int is_prefix(const char *, const char *); /* Conversion routines */ -double my_strtod(const char *str, char **end); +double my_strtod(const char *str, char **end, int *error); double my_atof(const char *nptr); extern char *llstr(longlong value,char *buff); |