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:
parent
3a6f51ee35
commit
fd0e3bd249
1 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue