Blame atlas-genparse.patch
|
Peter Robinson |
93e9bf |
diff --git a/include/atlas_genparse.h b/include/atlas_genparse.h
|
|
Peter Robinson |
93e9bf |
index 909a38e..1e6d153 100644
|
|
Peter Robinson |
93e9bf |
--- a/include/atlas_genparse.h
|
|
Peter Robinson |
93e9bf |
+++ b/include/atlas_genparse.h
|
|
Peter Robinson |
93e9bf |
@@ -163,7 +163,8 @@ static int GetDoubleArr(char *str, int N, double *d)
|
|
Peter Robinson |
93e9bf |
if (!str)
|
|
Peter Robinson |
93e9bf |
break;
|
|
Peter Robinson |
93e9bf |
str++;
|
|
Peter Robinson |
93e9bf |
- assert(sscanf(str, "%le", d+i) == 1);
|
|
Peter Robinson |
93e9bf |
+ if (sscanf(str, "%le", d+i) != 1)
|
|
Peter Robinson |
93e9bf |
+ break;
|
|
Peter Robinson |
93e9bf |
i++;
|
|
Peter Robinson |
93e9bf |
}
|
|
Peter Robinson |
93e9bf |
return(i);
|