From ca5ad034786d75ad9e9f0370a87bbb6ddfe35f86 Mon Sep 17 00:00:00 2001
From: = <=>
Date: Tue, 22 Jun 2021 14:47:31 +0800
Subject: [PATCH] add

---
 IlmImf/ImfDwaCompressor.cpp | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/IlmImf/ImfDwaCompressor.cpp b/IlmImf/ImfDwaCompressor.cpp
index ddd8b3c..4aa0d58 100644
--- a/IlmImf/ImfDwaCompressor.cpp
+++ b/IlmImf/ImfDwaCompressor.cpp
@@ -2908,7 +2908,7 @@ DwaCompressor::initializeBuffers (size_t &outBufferSize)
     // of channels we have. 
     //
 
-    int maxOutBufferSize  = 0;
+    size_t maxOutBufferSize  = 0;
     int numLossyDctChans  = 0;
     size_t unknownBufferSize = 0;
     size_t rleBufferSize     = 0;
@@ -2973,13 +2973,13 @@ DwaCompressor::initializeBuffers (size_t &outBufferSize)
     // which could take slightly more space
     //
 
-    maxOutBufferSize += (int)(ceil (1.01f * (float)rleBufferSize) + 100);
+    maxOutBufferSize += ceil (1.01f * (float)rleBufferSize) + 100;
     
     //
     // And the same goes for the UNKNOWN data
     //
 
-    maxOutBufferSize += (int)(ceil (1.01f * (float)unknownBufferSize) + 100);
+    maxOutBufferSize += ceil (1.01f * (float)unknownBufferSize) + 100;
 
     //
     // Allocate a zip/deflate compressor big enought to hold the DC data
-- 
2.23.0

