mirror of
https://github.com/opencv/opencv.git
synced 2025-06-07 17:44:04 +08:00
fixed compile error under win32
This commit is contained in:
parent
7c77787c84
commit
c46546203f
@ -1804,7 +1804,7 @@ struct CV_EXPORTS L2
|
|||||||
ResultType diff = a[i] - b[i];
|
ResultType diff = a[i] - b[i];
|
||||||
result += diff*diff;
|
result += diff*diff;
|
||||||
}
|
}
|
||||||
return sqrt(result);
|
return (ResultType)sqrt((double)result);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user