소스 검색

fix type conversion

Darien Raymond 8 년 전
부모
커밋
10bc421af9
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      common/buf/buffer_pool.go

+ 1 - 1
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)