From 10bc421af9ce64801157d814e12bf0a259859e45 Mon Sep 17 00:00:00 2001 From: Darien Raymond Date: Fri, 26 May 2017 03:02:13 +0200 Subject: [PATCH] fix type conversion --- common/buf/buffer_pool.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/buf/buffer_pool.go b/common/buf/buffer_pool.go index da81e784..be94ad46 100644 --- a/common/buf/buffer_pool.go +++ b/common/buf/buffer_pool.go @@ -115,7 +115,7 @@ func init() { } size := f.GetValueAsInt(getDefaultPoolSize()) if size > 0 { - totalByteSize := size * 1024 * 1024 + totalByteSize := uint32(size) * 1024 * 1024 mediumPool = NewBufferPool(Size, totalByteSize/Size) } else { mediumPool = NewSyncPool(Size)