Index: fpdfsdk/include/fsdk_mgr.h |
diff --git a/fpdfsdk/include/fsdk_mgr.h b/fpdfsdk/include/fsdk_mgr.h |
index cbe47418fc9ad6214a1be03d13d77b198e26b5a3..357be3cf0f0bcdc22ca6c914027e81a09907b1c1 100644 |
--- a/fpdfsdk/include/fsdk_mgr.h |
+++ b/fpdfsdk/include/fsdk_mgr.h |
@@ -476,10 +476,10 @@ public: |
double bottom; |
m_pInfo->FFI_GetPageViewRect(m_pInfo, page, &left, &top, &right, &bottom); |
- dstRect.left = left; |
- dstRect.top = top < bottom? bottom:top; |
- dstRect.bottom = top < bottom? top:bottom; |
- dstRect.right = right; |
+ dstRect.left = static_cast<float>(left); |
+ dstRect.top = static_cast<float>(top < bottom ? bottom : top); |
+ dstRect.bottom = static_cast<float>(top < bottom ? top : bottom); |
+ dstRect.right = static_cast<float>(right); |
} |
} |