Skip to content

Commit

Permalink
reduce variable scope
Browse files Browse the repository at this point in the history
  • Loading branch information
starseeker committed Jan 15, 2025
1 parent 111b1ef commit 9322ed2
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/mged/primitives/edarb.c
Original file line number Diff line number Diff line change
Expand Up @@ -1345,7 +1345,6 @@ arb_f_eqn(struct mged_state *s, int argc, const char **argv)
int
arb_edgedir(struct mged_state *s, int argc, const char **argv)
{
int i;
vect_t slope;
fastf_t rot, fb_a;

Expand Down Expand Up @@ -1373,7 +1372,7 @@ arb_edgedir(struct mged_state *s, int argc, const char **argv)
slope[1] = cos(fb_a) * sin(rot);
slope[2] = sin(fb_a);
} else {
for (i=0; i<3; i++) {
for (int i=0; i<3; i++) {
/* put edge slope in slope[] array */
slope[i] = atof(argv[i+1]);
}
Expand Down

0 comments on commit 9322ed2

Please sign in to comment.