1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

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
This commit is contained in:
卜部昌平 2019-08-01 16:18:45 +09:00
parent 3a6f51ee35
commit fd0e3bd249

View file

@ -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);
}