Flip around one of the 'if' statements. Changes the output enough to avoid false positives with some virus scanners.
This commit is contained in:
parent
7360badb4a
commit
a13d74af14
|
@ -240,12 +240,12 @@ private:
|
|||
int h = *head;
|
||||
int t = *tail;
|
||||
int size = h - t;
|
||||
if (size < 0) size += bufsize;
|
||||
else if (size >= bufsize)
|
||||
if (size >= bufsize)
|
||||
{
|
||||
//shouldnt be possible for size to be anything but bufsize here
|
||||
size = 0;
|
||||
}
|
||||
else if (size < 0) size += bufsize;
|
||||
return size;
|
||||
}
|
||||
|
||||
|
|
Binary file not shown.
Binary file not shown.
Loading…
Reference in New Issue