forked from bartvdbraak/blender
GCC 3.4 compile fixes from bug #1277
This commit is contained in:
parent
9b857ffb87
commit
6ce57a706f
@ -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 {
|
||||||
|
Loading…
Reference in New Issue
Block a user