diff options
author | Martin Reddy <lynx@lindenlab.com> | 2009-09-25 16:51:25 +0000 |
---|---|---|
committer | Martin Reddy <lynx@lindenlab.com> | 2009-09-25 16:51:25 +0000 |
commit | b5724bc0e97328a1859fc52b444e0a2edec255dd (patch) | |
tree | f19d1df1b3d3baff6870e87040afbc0f2b738195 /indra/llmessage | |
parent | af774fc9dbfd8550d61981b49151b60a7eaade91 (diff) |
SNOW-194 DEV-40415: pulling this snowglobe patch into viewer 2.0. This
fixes all of the parentheses warnings in the code.
Original patch was reviewed by merov (and others).
Diffstat (limited to 'indra/llmessage')
-rw-r--r-- | indra/llmessage/lliobuffer.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/indra/llmessage/lliobuffer.cpp b/indra/llmessage/lliobuffer.cpp index 71c1df8f99..223a23949b 100644 --- a/indra/llmessage/lliobuffer.cpp +++ b/indra/llmessage/lliobuffer.cpp @@ -87,7 +87,7 @@ LLIOPipe::EStatus LLIOBuffer::seek(LLIOBuffer::EHead head, S64 delta) { case READ: if(((delta >= 0) && ((mReadHead + delta) <= mWriteHead)) - || (delta < 0) && ((mReadHead + delta) >= mBuffer)) + || ((delta < 0) && ((mReadHead + delta) >= mBuffer))) { mReadHead += delta; status = STATUS_OK; @@ -95,7 +95,7 @@ LLIOPipe::EStatus LLIOBuffer::seek(LLIOBuffer::EHead head, S64 delta) break; case WRITE: if(((delta >= 0) && ((mWriteHead + delta) < (mBuffer + mBufferSize))) - || (delta < 0) && ((mWriteHead + delta) > mReadHead)) + || ((delta < 0) && ((mWriteHead + delta) > mReadHead))) { mWriteHead += delta; status = STATUS_OK; |