diff options
author | 卜部昌平 <[email protected]> | 2019-08-01 16:18:45 +0900 |
---|---|---|
committer | 卜部昌平 <[email protected]> | 2019-08-01 16:19:49 +0900 |
commit | fd0e3bd2497d4e796b719c7b7154dc3c945f87b1 (patch) | |
tree | 1c67317cf3c18cfed033b9b13dfe6e35595dc733 | |
parent | 3a6f51ee35da5d49973aba8f7d8128a65a9d8c4a (diff) |
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
-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); } |