From 3c9e6f1e624031b4736941804ad1f25f685b3999 Mon Sep 17 00:00:00 2001 From: nobu Date: Thu, 11 Jul 2013 12:30:24 +0000 Subject: [PATCH] win32.c: fix infinite recursion * win32/win32.c (rb_w32_pow): undef pow to get rid of infinite recursive call. re-fix [Bug #8495]. [ruby-core:55923] [Bug #8621] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41923 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 5 +++++ win32/win32.c | 1 + 2 files changed, 6 insertions(+) diff --git a/ChangeLog b/ChangeLog index a130196c97..f6346e8f97 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +Thu Jul 11 21:30:17 2013 Nobuyoshi Nakada + + * win32/win32.c (rb_w32_pow): undef pow to get rid of infinite + recursive call. re-fix [Bug #8495]. [ruby-core:55923] [Bug #8621] + Thu Jul 11 20:18:13 2013 Nobuyoshi Nakada * ext/dl/win32/lib/win32/registry.rb (Win32::Registry::API#make_wstr): diff --git a/win32/win32.c b/win32/win32.c index 34bd15eb26..291dc2aebe 100644 --- a/win32/win32.c +++ b/win32/win32.c @@ -6969,6 +6969,7 @@ rb_w32_unwrap_io_handle(int fd) double rb_w32_pow(double x, double y) { +#undef pow double r; unsigned int default_control = _controlfp(0, 0); _controlfp(_PC_64, _MCW_PC);