mirror of https://github.com/davisking/dlib.git
fixed compiler warning
This commit is contained in:
parent
c118dcb676
commit
89e344f279
|
@ -612,7 +612,7 @@ namespace dlib
|
|||
|
||||
type g = d(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)
|
||||
{
|
||||
r = -r;
|
||||
|
|
Loading…
Reference in New Issue