GCC 3.4 compile fixes from bug #1277

This commit is contained in:
Kester Maddock 2004-07-22 00:15:50 +00:00
parent 9b857ffb87
commit 6ce57a706f
2 changed files with 5 additions and 5 deletions

@ -296,11 +296,11 @@ std::ostream& operator<<(std::ostream &s, const Vector<T> &A)
{ {
Subscript N=A.dim(); Subscript N=A.dim();
s << N << endl; s << N << std::endl;
for (Subscript i=0; i<N; i++) for (Subscript i=0; i<N; i++)
s << A[i] << " " << endl; s << A[i] << " " << std::endl;
s << endl; s << std::endl;
return s; return s;
} }

@ -1192,8 +1192,8 @@ static int iv_finddata(struct IvNode *iv, char *field, int fieldnr)
/* atof doesn't stop after the first float /* atof doesn't stop after the first float
* in a long string at Windows... so we copy * in a long string at Windows... so we copy
* the float to a new string then atof... */ * the float to a new string then atof... */
char *cpa_temp = strpbrk(cpa, ", \n");
i= (long)(strpbrk(cpa, ", \n")-cpa); i = cpa_temp - cpa;
if (i>63) *fp= 0.0; if (i>63) *fp= 0.0;
else { else {