size_t is unsigned, so can't be negative
This commit is contained in:
@ -542,7 +542,6 @@ std::string ReaderNative::read_binary_str(size_t size)
|
|||||||
|
|
||||||
void ReaderNative::read_double_chunk(size_t count)
|
void ReaderNative::read_double_chunk(size_t count)
|
||||||
{
|
{
|
||||||
if (count < 0) return;
|
|
||||||
// extend buffer to fit chunk size
|
// extend buffer to fit chunk size
|
||||||
if (count > maxbuf) {
|
if (count > maxbuf) {
|
||||||
memory->grow(databuf,count,"reader:databuf");
|
memory->grow(databuf,count,"reader:databuf");
|
||||||
|
|||||||
Reference in New Issue
Block a user