Skip to content

Commit

Permalink
I am frankly amazed that cl.exe does not see the const int n=90 one l…
Browse files Browse the repository at this point in the history
…ine above and thus understands the statics below... But no...
  • Loading branch information
willend committed Feb 25, 2024
1 parent efde091 commit 553044a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mcstas-comps/contrib/Vertical_Bender.comp
Original file line number Diff line number Diff line change
Expand Up @@ -492,7 +492,7 @@ MCDISPLAY
%{
double y1, y2, z1, z2;
const int n = 90;
double yplot[n], zplot[n];
double yplot[90], zplot[90];
int ns = 0;
int j = 1;
const double lengthOfGuide = sin(length/radius)*radius;
Expand Down

0 comments on commit 553044a

Please sign in to comment.