Skip to content

Commit

Permalink
Fix incorrect cast causing loss of integer precision in RingBuffer
Browse files Browse the repository at this point in the history
  • Loading branch information
stuartm committed Jun 29, 2012
1 parent 2e80053 commit 7aea313
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mythtv/libs/libmythtv/ringbuffer.cpp
Expand Up @@ -801,7 +801,7 @@ void RingBuffer::run(void)
{
// limit the read size
if (readblocksize > totfree)
totfree = (int)(totfree / KB32) * KB32; // must be multiple of 32KB
totfree = (long long)(totfree / KB32) * KB32; // must be multiple of 32KB
else
totfree = readblocksize;

Expand Down

0 comments on commit 7aea313

Please sign in to comment.