mirror of
https://github.com/v2fly/v2ray-core.git
synced 2024-11-08 11:17:44 -05:00
int to int32
This commit is contained in:
parent
1cbfeea0cd
commit
5a227ec356
@ -63,7 +63,7 @@ func (r *PacketReader) ReadMultiBuffer() (buf.MultiBuffer, error) {
|
||||
// StreamReader reads Mux frame as a stream.
|
||||
type StreamReader struct {
|
||||
reader *buf.BufferedReader
|
||||
leftOver int
|
||||
leftOver int32
|
||||
}
|
||||
|
||||
// NewStreamReader creates a new StreamReader.
|
||||
@ -86,10 +86,10 @@ func (r *StreamReader) ReadMultiBuffer() (buf.MultiBuffer, error) {
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
r.leftOver = int(size)
|
||||
r.leftOver = int32(size)
|
||||
}
|
||||
|
||||
mb, err := r.reader.ReadAtMost(r.leftOver)
|
||||
r.leftOver -= mb.Len()
|
||||
mb, err := r.reader.ReadAtMost(int(r.leftOver))
|
||||
r.leftOver -= int32(mb.Len())
|
||||
return mb, err
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user