[3.0] Fixed Svace Defect 66/62466/1 accepted/tizen/common/20160317.155844 accepted/tizen/ivi/20160318.112234 accepted/tizen/mobile/20160318.111352 accepted/tizen/tv/20160318.111722 accepted/tizen/wearable/20160318.111841 submit/tizen/20160316.082103
authorsuhyung Eom <suhyung.eom@samsung.com>
Wed, 9 Mar 2016 04:55:45 +0000 (13:55 +0900)
committersuhyung Eom <suhyung.eom@samsung.com>
Wed, 16 Mar 2016 08:04:48 +0000 (17:04 +0900)
[Defect - NO_CAST.INTEGER_OVERFLOW]
Signed-off-by: suhyung Eom <suhyung.eom@samsung.com>
Change-Id: I22b67509755134baaee7f1854b5576656faa3600

adaptors/base/combined-update-render/combined-update-render-controller.cpp

index bb3edfe..8a1b564 100644 (file)
@@ -281,8 +281,8 @@ void CombinedUpdateRenderController::SetRenderRefreshRate( unsigned int numberOf
 {
   // Not protected by lock, but written to rarely so not worth adding a lock when reading
   mDefaultFrameDelta                  = numberOfFramesPerRender * DEFAULT_FRAME_DURATION_IN_SECONDS;
-  mDefaultFrameDurationMilliseconds   = numberOfFramesPerRender * DEFAULT_FRAME_DURATION_IN_MILLISECONDS;
-  mDefaultFrameDurationNanoseconds    = numberOfFramesPerRender * DEFAULT_FRAME_DURATION_IN_NANOSECONDS;
+  mDefaultFrameDurationMilliseconds   = (uint64_t)numberOfFramesPerRender * DEFAULT_FRAME_DURATION_IN_MILLISECONDS;
+  mDefaultFrameDurationNanoseconds    = (uint64_t)numberOfFramesPerRender * DEFAULT_FRAME_DURATION_IN_NANOSECONDS;
   mDefaultHalfFrameNanoseconds        = mDefaultFrameDurationNanoseconds / 2;
 
   LOG_EVENT( "mDefaultFrameDelta(%.6f), mDefaultFrameDurationMilliseconds(%lld), mDefaultFrameDurationNanoseconds(%lld)", mDefaultFrameDelta, mDefaultFrameDurationMilliseconds, mDefaultFrameDurationNanoseconds );