Flip around one of the 'if' statements. Changes the output enough to avoid false positives with some virus scanners.

This commit is contained in:
jdpurcell 2015-03-08 18:56:14 +00:00
parent 7360badb4a
commit a13d74af14
3 changed files with 2 additions and 2 deletions

View File

@ -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;
}