summaryrefslogtreecommitdiff
path: root/include/m_string.h
diff options
context:
space:
mode:
authorunknown <kaa@polly.local>2007-05-28 15:33:22 +0400
committerunknown <kaa@polly.local>2007-05-28 15:33:22 +0400
commita5a84c84d77075488ed1726b6671e8fdc18a2211 (patch)
tree41b3d2be6f1791c5130fbb13683a7df7638076ed /include/m_string.h
parent7522742ba8434631ee81b6c4dfe49e8e453ee663 (diff)
downloadmariadb-git-a5a84c84d77075488ed1726b6671e8fdc18a2211.tar.gz
Some Windows-related fixes to make Microsoft compilers happy. This is for bug #28128.
include/m_string.h: Reduced the number of elements in log_10[] and log_01[] to not exceed DBL_MAX. sql/field.cc: Avoid the warning on Windows. strings/strtod.c: Reduced the number of elements in log_10[] and log_01[] to not exceed DBL_MAX.
Diffstat (limited to 'include/m_string.h')
-rw-r--r--include/m_string.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/m_string.h b/include/m_string.h
index 773326e9b7d..f28cda529f5 100644
--- a/include/m_string.h
+++ b/include/m_string.h
@@ -106,8 +106,8 @@ extern char NEAR _dig_vec_upper[];
extern char NEAR _dig_vec_lower[];
/* Defined in strtod.c */
-extern const double log_10[310];
-extern const double log_01[310];
+extern const double log_10[309];
+extern const double log_01[309];
#ifdef BAD_STRING_COMPILER
#define strmov(A,B) (memccpy(A,B,0,INT_MAX)-1)