diff options
author | markd <markd@pkgsrc.org> | 2016-07-16 04:14:03 +0000 |
---|---|---|
committer | markd <markd@pkgsrc.org> | 2016-07-16 04:14:03 +0000 |
commit | 534b6822554d03b1a00c43e1baf921bbafdba610 (patch) | |
tree | 0ad45eaee858da88066ef42fdeff0f1252aac5ab /misc/kstars/patches | |
parent | accf32ee02a98ad82428cfba013600863b69c640 (diff) | |
download | pkgsrc-534b6822554d03b1a00c43e1baf921bbafdba610.tar.gz |
gcc6 build fix
Diffstat (limited to 'misc/kstars/patches')
-rw-r--r-- | misc/kstars/patches/patch-kstars_fitsviewer_fitsimage.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/misc/kstars/patches/patch-kstars_fitsviewer_fitsimage.cpp b/misc/kstars/patches/patch-kstars_fitsviewer_fitsimage.cpp index 42b01950b2f..1010bc0d612 100644 --- a/misc/kstars/patches/patch-kstars_fitsviewer_fitsimage.cpp +++ b/misc/kstars/patches/patch-kstars_fitsviewer_fitsimage.cpp @@ -1,4 +1,4 @@ -$NetBSD: patch-kstars_fitsviewer_fitsimage.cpp,v 1.1 2013/06/23 19:09:15 jperkin Exp $ +$NetBSD: patch-kstars_fitsviewer_fitsimage.cpp,v 1.2 2016/07/16 04:14:03 markd Exp $ Avoid "ambiguous call to overloaded function" errors. @@ -9,7 +9,7 @@ Avoid "ambiguous call to overloaded function" errors. int diff_y=s1->y - s2->y; - dis = abs( sqrt( diff_x*diff_x + diff_y*diff_y)); -+ dis = abs( sqrt((float)diff_x*diff_x + diff_y*diff_y)); ++ dis = std::abs( sqrt((float)diff_x*diff_x + diff_y*diff_y)); dis -= s1->width/2; dis -= s2->width/2; |