From 06ccd6846d4220cb2037b08d7bd68fa3594c9bc3 Mon Sep 17 00:00:00 2001 From: nobu Date: Thu, 14 Apr 2016 05:28:58 +0000 Subject: cont.c: wrong _MSC_VER check * cont.c (fiber_initialize_machine_stack_context): fix wrong _MSC_VER check, should be decimal but not hexadecimal. [ruby-core:74936] [Bug #12279] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54574 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 12 ++++++++++++ cont.c | 2 +- 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 9db37c2289..ce8676a3b7 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,15 @@ +Thu Apr 14 14:28:55 2016 cremno phobia + + * cont.c (fiber_initialize_machine_stack_context): fix wrong + _MSC_VER check, should be decimal but not hexadecimal. + [ruby-core:74936] [Bug #12279] + +Thu Apr 14 13:47:52 2016 cremno phobia + + * cont.c (fiber_initialize_machine_stack_context): fix wrong + _MSC_VER check, should be decimal but not hexadecimal. + [ruby-core:74936] [Bug #12279] + Wed Apr 13 22:51:38 2016 Tanaka Akira * array.c (rb_ary_sum): Array#sum is implemented. diff --git a/cont.c b/cont.c index 8ebd78f860..729a025fb0 100644 --- a/cont.c +++ b/cont.c @@ -657,7 +657,7 @@ fiber_initialize_machine_stack_context(rb_fiber_t *fib, size_t size) rb_thread_t *sth = &fib->cont.saved_thread; #ifdef _WIN32 -# if defined(_MSC_VER) && _MSC_VER <= 0x1200 +# if defined(_MSC_VER) && _MSC_VER <= 1200 # define CreateFiberEx(cs, stacksize, flags, entry, param) \ CreateFiber((stacksize), (entry), (param)) # endif -- cgit v1.2.3