summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authormonty@mysql.com <>2005-02-22 12:51:23 +0200
committermonty@mysql.com <>2005-02-22 12:51:23 +0200
commite2dc9b4099b12ade3553498b9929928c0598de49 (patch)
treeaf26a8ec65a080dd408d6df18990ff71c50577aa /include
parentb902a66e274f999d078af43804a8e1e109e5fe36 (diff)
downloadmariadb-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.h2
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);