Fix exit condition, remove Werror flag

This commit is contained in:
mm
2019-03-18 17:47:04 +00:00
parent d67a1b7db6
commit 646c1d3edc
4 changed files with 24 additions and 63 deletions

View File

@@ -26,6 +26,7 @@
*
*/
#define _CRT_HAS_CXX17 0
#include <stdio.h>
/* For importing openGJK this is Step 1: include header in subfolder. */
@@ -58,7 +59,7 @@ int readinput ( const char *inputfile, double ***pts, int * out ) {
}
/* Read number of input vertices. */
if (fscanf_s(fp, "%1d", &npoints) != 1)
if (fscanf_s(fp, "%d", &npoints) != 1)
return 1;
/* Allocate memory. */