diff --git a/extent.cpp b/extent.cpp index 8f811d2a..2992aa43 100644 --- a/extent.cpp +++ b/extent.cpp @@ -68,9 +68,11 @@ extent::area (void) const //----------------------------------------------------------------------------- template -double +float extent::aspect (void) const - { return static_cast (w) / h; } +{ + return static_cast (w) / static_cast (h); +} //----------------------------------------------------------------------------- diff --git a/extent.hpp b/extent.hpp index 0b0e120c..6e33e5a0 100644 --- a/extent.hpp +++ b/extent.hpp @@ -37,7 +37,7 @@ namespace util { T area (void) const; T diameter (void) const; - double aspect (void) const; + float aspect (void) const; bool empty (void) const;