mirror of
https://github.com/v2ray/v2ray-core.git
synced 2026-11-13 14:44:15 +00:00
migrate int to int32
This commit is contained in:
30 files changed
+100
-104
No files matched your search
@@ -79,7 +79,7 @@ func (c *connection) Write(b []byte) (int, error) {
|
||||
}
|
||||
|
||||
l := len(b)
|
||||
mb := buf.NewMultiBufferCap(l/buf.Size + 1)
|
||||
mb := buf.NewMultiBufferCap(int32(l)/buf.Size + 1)
|
||||
mb.Write(b)
|
||||
return l, c.output.WriteMultiBuffer(mb)
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user