mirror of
https://github.com/v2fly/v2ray-core.git
synced 2026-05-08 21:49:08 -04:00
fix type conversion
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user