Commit 89e344f2 authored by Davis King's avatar Davis King

fixed compiler warning

parent c118dcb6
...@@ -612,7 +612,7 @@ namespace dlib ...@@ -612,7 +612,7 @@ namespace dlib
type g = d(l); type g = d(l);
type p = (d(l+1) - g) / (2.0 * e(l)); type p = (d(l+1) - g) / (2.0 * e(l));
type r = hypot(p,1.0); type r = hypot(p,(type)1.0);
if (p < 0) if (p < 0)
{ {
r = -r; r = -r;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment