Summary: | wavplayobject_impl.cc:64: warning: passing `float' for argument 1 of `Arts::poTime::poTime(long int, long int, float, const std::string&)' | ||
---|---|---|---|
Product: | arts | Reporter: | Olaf Hering <kde> |
Component: | general | Assignee: | Stefan Westerfeld <stefan> |
Status: | CLOSED FIXED | ||
Severity: | wishlist | ||
Priority: | NOR | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | Compiled Sources | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: |
Description
Olaf Hering
2003-01-04 18:05:05 UTC
Subject: arts/soundserver CVS commit by akrille: Inserting some explicit casts to remove warnings... Fixes http://bugs.kde.org/show_bug.cgi?id=52595 CCMAIL: 52595@bugs.kde.org M +2 -2 wavplayobject_impl.cc 1.16 --- arts/soundserver/wavplayobject_impl.cc #1.15:1.16 @@ -62,5 +62,5 @@ public: float timems = (timesec - floor(timesec)) * 1000.0; - return poTime(timesec, timems, (int)flpos, "samples"); + return poTime( int( timesec ), int( timems ), (int)flpos, "samples" ); } @@ -69,5 +69,5 @@ public: float timems = (timesec - floor(timesec)) * 1000.0; - return poTime(timesec, timems, sampleCount(), "samples"); + return poTime( int( timesec ), int( timems ), sampleCount(), "samples" ); } Will go on with removing warnings in the near future... Closing this, Arnold |