fixed compiler warning

This commit is contained in:
Davis King 2016-06-10 12:42:02 -04:00
parent c118dcb676
commit 89e344f279
1 changed files with 1 additions and 1 deletions

View File

@ -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;