summaryrefslogtreecommitdiff
path: root/numeric.c
diff options
context:
space:
mode:
authorDaniel Dragan <bulk88@hotmail.com>2014-12-31 15:58:07 -0500
committerJarkko Hietaniemi <jhi@iki.fi>2015-02-04 22:15:55 -0500
commit3c81f0b3e2da864d10c7b9a137e68516f2c94ce4 (patch)
treea517207e0a9933fbe74794ba9ce9c3fd2a76d092 /numeric.c
parent4112ab0dbe2ae98361989f6ab858863697d6ceca (diff)
downloadperl-3c81f0b3e2da864d10c7b9a137e68516f2c94ce4.tar.gz
[PATCH] fix PL_nan_u from leaking in every translation object on Win32 VC
Diffstat (limited to 'numeric.c')
-rw-r--r--numeric.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/numeric.c b/numeric.c
index d5c422f199..a6f6018adc 100644
--- a/numeric.c
+++ b/numeric.c
@@ -1259,6 +1259,11 @@ Perl_my_atof(pTHX_ const char* s)
return x;
}
+
+#ifdef USING_MSVC6
+# pragma warning(push)
+# pragma warning(disable:4756;disable:4056)
+#endif
static char*
S_my_atof_infnan(pTHX_ const char* s, bool negative, const char* send, NV* value)
{
@@ -1330,6 +1335,9 @@ S_my_atof_infnan(pTHX_ const char* s, bool negative, const char* send, NV* value
}
return NULL;
}
+#ifdef USING_MSVC6
+# pragma warning(pop)
+#endif
char*
Perl_my_atof2(pTHX_ const char* orig, NV* value)