Permalink
Browse files

Fix incorrect cast causing loss of integer precision in RingBuffer

  • Loading branch information...
1 parent 2e80053 commit 7aea3131a8801c09617012d3e892ec4fa68f626a @stuartm stuartm committed Jun 29, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 mythtv/libs/libmythtv/ringbuffer.cpp
View
2 mythtv/libs/libmythtv/ringbuffer.cpp
@@ -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;

0 comments on commit 7aea313

Please sign in to comment.