Skip to content

Commit

Permalink
Add curly braces to remove -Wdangline-else
Browse files Browse the repository at this point in the history
This occurs when there is an ambiguous if... if ... else structure.
  • Loading branch information
d-lamb committed Jun 3, 2015
1 parent 81b5f37 commit b55b188
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Lib/Image2D/image2d.pd
Expand Up @@ -1474,12 +1474,12 @@ pp_def('rot2d',
Pars => 'im(m,n); float angle(); bg(); int aa(); [o] om(p,q)',
Code => 'int ierr;
if ((ierr = rotate($P(im),$P(om),$SIZE(m),$SIZE(n),$SIZE(p),
$SIZE(q),$angle(),$bg(),$aa())) != 0)
$SIZE(q),$angle(),$bg(),$aa())) != 0) {
if (ierr == -1)
croak("error during rotate, wrong angle");
else
croak("wrong output dims, did you set them?");
',
}',
# ugly workaround since $SIZE(m) and $SIZE(n) are not initialized
# when the redodimscode is called
# need to fix this!
Expand Down

0 comments on commit b55b188

Please sign in to comment.