Little fix for IO
This commit is contained in:
parent
aa2a1dedd8
commit
25f6d6bd2a
2 changed files with 2 additions and 1 deletions
|
@ -11,7 +11,7 @@
|
|||
#include "defaults.h"
|
||||
|
||||
/* getopt options */
|
||||
const char *optstr = "dqu:p:P:W0";
|
||||
const char *optstr = "dqu:p:P:W0i:";
|
||||
|
||||
/* allocate polygons as a global array */
|
||||
polygon *poly_global[NPOLYSMAX];
|
||||
|
|
|
@ -167,6 +167,7 @@ int wr_bin_poly(char *filename, format *fmt, int npolys, polygon *polys[/*npolys
|
|||
fwrite(polys[ipoly]->rp, sizeof(vec), ph.np, file);
|
||||
fwrite(polys[ipoly]->cm, sizeof(long double), ph.np, file);
|
||||
}
|
||||
npoly = npolys;
|
||||
|
||||
/* warn about polygons with incorrect area */
|
||||
if (nbadarea > 0) {
|
||||
|
|
Loading…
Add table
Reference in a new issue