diff options
author | nagachika <nagachika@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2019-08-22 11:39:49 +0000 |
---|---|---|
committer | nagachika <nagachika@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2019-08-22 11:39:49 +0000 |
commit | 0a74fac956d5bf5fdcd6d2b5ba80c564c2e942d9 (patch) | |
tree | 927cc82f3ceecf62c36682566139d07681709ebe /ext | |
parent | fbb96f1b4d9608ad5dd967951d4fa802ad5fe28c (diff) |
merge revision(s) fd0e3bd2497d4e796b719c7b7154dc3c945f87b1: [Backport #14834]
fix VC 2013 compile error
It seems the compiler does not support VLAs.
See also: https://ci.appveyor.com/project/ruby/ruby/builds/26392589/job/px6nuiuw4e78weg1
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_6@67750 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext')
-rw-r--r-- | ext/-test-/bug-14834/bug-14384.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/-test-/bug-14834/bug-14384.c b/ext/-test-/bug-14834/bug-14384.c index 58abd6d435..0d4103b5d4 100644 --- a/ext/-test-/bug-14834/bug-14384.c +++ b/ext/-test-/bug-14834/bug-14384.c @@ -28,8 +28,8 @@ g(MAYBE_UNUSED(VALUE q), void* w) const int *e = (const int *)w; const int r = *e++; const int t = *e++; - VALUE y[t]; - int u[t]; + VALUE *y = ALLOCA_N(VALUE, t); + int *u = ALLOCA_N(int, t); rb_profile_frames(r, t, y, u); } |