mirror of
https://github.com/v2fly/v2ray-core.git
synced 2025-01-02 07:26:24 -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.
|
// StreamReader reads Mux frame as a stream.
|
||||||
type StreamReader struct {
|
type StreamReader struct {
|
||||||
reader *buf.BufferedReader
|
reader *buf.BufferedReader
|
||||||
leftOver int
|
leftOver int32
|
||||||
}
|
}
|
||||||
|
|
||||||
// NewStreamReader creates a new StreamReader.
|
// NewStreamReader creates a new StreamReader.
|
||||||
@ -86,10 +86,10 @@ func (r *StreamReader) ReadMultiBuffer() (buf.MultiBuffer, error) {
|
|||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
r.leftOver = int(size)
|
r.leftOver = int32(size)
|
||||||
}
|
}
|
||||||
|
|
||||||
mb, err := r.reader.ReadAtMost(r.leftOver)
|
mb, err := r.reader.ReadAtMost(int(r.leftOver))
|
||||||
r.leftOver -= mb.Len()
|
r.leftOver -= int32(mb.Len())
|
||||||
return mb, err
|
return mb, err
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user